+ 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 Answers
+ 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