Java-Referenz EIPR/OOP1 2019

Woche 1

Syntax

Programm

public class NameBezeichner {
Methode

Methode
}

Methode

public static void main(String[] args) {
Anweisung

Anweisung
}
oder
public static void NameBezeichner() {
Anweisung

Anweisung
}

Anweisung

System.out.println(); oder
System.out.println(String-Literal); oder
System.out.print(String-Literal); oder
MethodeBezeichner();

String-Literal

"String-Zeichen...String-Zeichen"

String-Zeichen

alle ausser "\ oder \t oder \n oder \" oder \\

Bezeichner

A-Za-z$_A-Za-z0-9$_...A-Za-z0-9$_
ausser Keyword

Keyword

_abstractassertbooleanbreakbytecasecatchcharclassconstcontinuedefaultdodoubleelseenumextendsfalsefinalfinallyfloatforgotoifimplementsimportinstanceofintinterfacelongnativenewnullpackageprivateprotectedpublicreturnshortstaticstrictfpsuperswitchsynchronizedthisthrowthrowstransienttruetryvoidvolatilewhile

© 2019 Michael Faes