String
From Abap2Java
[edit]
ABAP
see STRING
DATA s TYPE STRING. s = 'Die optimale Betriebstemperatur für Bier beträgt 3°C'. CONCATENATE 'Use the CONCATENATE keyword' 'to concatenate strings' 'Special Strings: CL_ABAP_CHAR_UTILITIES=>CR_LF (carriage return).' 'Strings are included into Single Quotes.' 'A Single Quote itself can be written like this: '' .' INTO u SEPARATED BY SPACE.
See also:
String Processing, Character String, C
[edit]
Java
A String represents an array of chars. Altough it is an object, it is not instanciated as such.
String s = "Die optimale Betriebstemperatur für Bier beträgt 3°C"; String u = "Use the + operator to concatenate Strings." + "Special Strings: \n (carriage return), \t (tab)." + "Strings are included into Double Quotes." + "A Double Quote itself can be written like this: \" ";
If the String is subject to many concatenation operations, use for performance reasons a StringBuffer instead.
Pattern Matching and Regular Expressions: String.matches
Finding a substring in a String: String.indexOf
See also:
String Processing, Character String, StringBuffer, char
External links:
JDK 1.4.2 String API
JDK 1.4.2 StringBuffer API
JDK 1.5 String API
JDK 1.5 StringBuffer API

