System.out.println((int) '3' + " " + Character.getNumericValue('3'));
'a' + 2
">" + 'a' + 2
'T' + 'H' + 'M' + ""
"" + 'T' + 'H' + 'M'
for (char c = 65; c <= 'D'; c++) { System.out.print(c) };
System.out.println( 'b' - 'a' );
"Medieninformatik".substring(0,3)
"Die Wetterau".substring(5,10)
"Medien".replace('e', 'x')
"Informatik".replaceAll("[aoi]", "x")
"Friedberg".replaceAll("[a-e]", "")
"Wetterau".lastIndexOf("e")
"Die Wetterau".substring(4,9)
"In der Wetterau".lastIndexOf("Wett")
"In der Wetterau".lastIndexOf("WETT")
"aA b c".split(" ").length
int m = 5; String s;
s.split("")
String text = "*"; for (int i = 0; i < 3; i++ ) { text = "-" + text + "-"; } System.out.println(text);
String t1 = "abcd"; String t2 = ""; for (int i = 0; i < t1.length(); i++) { t2 = t1.charAt(i) + t2; } System.out.println(t2);
String text = ""; for (char c = 'a'; c < 'h'; c += 2) { text += c; } System.out.println(text);
String buchstaben = "abcd"; String text = ""; for (int i = 0; i < buchstaben.length(); i++) { text += buchstaben.substring(i, i + 1) + ( i + 1); } System.out.println(text);
Jun 18, 09:15 | |
convertertmp | Feb 02, 21:59 |
atest/erben | May 02, 10:37 |
atest/oop2 | Apr 18, 10:30 |
thm/Studium | Mar 30, 11:58 |
atest/oop1 | Mar 30, 11:57 |