Is there easy methord to print in java ,other than System.out.println | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

Is there easy methord to print in java ,other than System.out.println

21st Jul 2017, 2:28 PM
yohan kulasinghe
yohan kulasinghe - avatar
4 Antworten
+ 4
You could define your own method. static void print(String msg){ System.out.println(msg); } Now I can just call the method: print("Some text"); Output: Some text
21st Jul 2017, 4:26 PM
Rrestoring faith
Rrestoring faith - avatar
21st Jul 2017, 2:53 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
there many other methods but I like System.out.print()
21st Jul 2017, 4:23 PM
Irwin Lopez
Irwin Lopez - avatar
+ 1
Many IDE's let you type in System.out.println() a lot faster. In Netbeans you just type "sout" and press tab. Eclipse has something similar and IntelliJ does probably too
21st Jul 2017, 4:19 PM
Eligijus Silkartas
Eligijus Silkartas - avatar