Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do you shorten system.out.println in java

Tags:

java

what is the absolute shortest possible shortcut to call System.out.println that makes it callable via the shortest possible number of characters (like print())

like image 576
kamikaze_pilot Avatar asked Jul 14 '11 03:07

kamikaze_pilot


People also ask

How do I make System out Println shorter?

println statement in your Java file, you can use the following Eclipse shortcut keys. Just type "sysout" in your Java editor and press Ctrl + space, which triggers code completion. This will expand sysout into System.

What is the short form of System out Println in Java?

To get System. out. println() line in eclipse without typing the whole line type sysout and press Ctrl + space.


1 Answers

import static java.lang.System.out;

And in your code:

out.println("Foo");
like image 187
minichate Avatar answered Oct 01 '22 09:10

minichate