Difference between revisions of "Quotes"

From Conservapedia
Jump to navigation Jump to search
(Created page with ''''Quotes''' in computer programming come in two basic kinds: the double quote (") and the single quote ('). Non-programmers call these the quotation mark and the [[apostroph...')
 
 
Line 2: Line 2:
  
 
In [[Java]], a [[String]] is specified by enclosing text in double quotes, while a single character is enclosed in single quotes. Special characters such as the [[tab]] are marked with a backslash (see [[escape character]]). Characters so marked can be used in double quotes for a String, or in single quotes for a [[char]].
 
In [[Java]], a [[String]] is specified by enclosing text in double quotes, while a single character is enclosed in single quotes. Special characters such as the [[tab]] are marked with a backslash (see [[escape character]]). Characters so marked can be used in double quotes for a String, or in single quotes for a [[char]].
 +
 +
[[Category:Computer Science]]

Latest revision as of 15:15, May 24, 2009

Quotes in computer programming come in two basic kinds: the double quote (") and the single quote ('). Non-programmers call these the quotation mark and the apostrophe.

In Java, a String is specified by enclosing text in double quotes, while a single character is enclosed in single quotes. Special characters such as the tab are marked with a backslash (see escape character). Characters so marked can be used in double quotes for a String, or in single quotes for a char.