• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what characters are used to containing a string

 
Juan Villena
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone help me with this questions please...
what caracters are used to containing a string

thanks
 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Characters are single items, 'a', 'x', ,\n', etc. Strings can be made up of multiple characters, "this is a string." In that light, your question doesn't make sense. Can you restate or explain further what you're trying to understand?
 
Campbell Ritchie
Sheriff
Pie
Posts: 49841
70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

When you write code you use double-straight-quotes " to start and end a String literal. The internal representation does not have delimiting characters at all.
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Juan, please CarefullyChooseOneForum. Your other thread with the same question has been locked.
 
Juan Villena
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the answer, is double quotes " ", my answer was the same like yours...., despite the question is kind of vague, my profesor answered the question.
Thanks for your replies guys....

Sinner7uk
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic