+ 2
Is there easy methord to print in java ,other than System.out.println
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
+ 3
+ 2
there many other methods but I like
System.out.print()
+ 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