Für System.out.println() muss java.io.PrintStream importiert werden #317
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Aktuell muss neben
java.lang.System
auchjava.io.PrintStream
importieren werden, wenn manSystem.out.println()
verwenden möchte. Soll das so sein?Meiner Auffassung nach sollte lediglich der import von
java.lang.System
notwendig sein, dennjava.io.PrintStream
wird ja bereits vonjava.lang.System
importiert.Beispiel
Kompiliert:
Kompiliert nicht: