- All strings of the kind
"text" are constants of the type java.lang.String .
- The
java.lang package offers a comfortable way of handling character strings.
- Comparing strings:
if("Jens".equals(name)) { }
or
if(name.equals("Jens")) { }
- Converting primitive data types into strings (Not as mighty as sscanf in C):
double d = 10.1;
String str = String.valueOf(d);
- String length
str.length();
|