Class
|
|
String str = "d = "+String.valueOf(d)+"cm."; char c= str.charAt(0); String .
Example for removing leading and following whitespaces:
String text = " Hallo "; String result = text.trim(); System.out.println("Text:"+text+"."); System.out.println("Result:"+result+".");Output: Text: Hallo . Result:Hallo. |
Java Tutorial - Standard Classes | Jens Trapp, 1997 |