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);| bos/code | Sep 02, 14:09 |
| seminar/Befehle | Sep 02, 14:09 |
| seminar/latex | Sep 02, 14:09 |
| seminar/seminar | Sep 02, 14:09 |
| atest/CleanCode | Sep 02, 14:09 |
| atest/Datenstrukturen | Sep 02, 14:09 |