public static void main(String[] args) {
Integer i = Integer.valueOf("631");
System.out.println(i) // 631;
Boolean b = Boolean.logicalXor(true, false);
System.out.println(b) // true
Character c = Character.toUpperCase('m');
System.out.println(c) // 'M'
}
public static void main(String[] args) {
LocalDateTime now = LocalDateTime.now();
System.out.println("Jahr: " + now.getYear());
System.out.println("Monat: " + now.getMonth());
System.out.println("Tag: " + now.getDayOfMonth());
}
public static void main(String[] args) {
File file = new File("text.txt");
Scanner scanner = new Scanner(file);
while(scanner.hasNextLine()) {
String currentLine = scanner.nextLine();
System.out.println(currentLine);
}
scanner.close();
}
*NKR
Gruppe von Konstanten
*NKR
*NKR
*NKR