Skip to content
← Back to Community
Is there a shortcut I can use for system.out.println(); in java?
Profile icon
AshishKaripalli

I dont' want to type out system.out.println(); every time I need to use it.

Voters
Profile icon
AnesNumanovic
Profile icon
ZiynetYapar
Profile icon
SandaraDewmini
Profile icon
asalaz04
Profile icon
tcssrKSarkar
Profile icon
AshishKaripalli
Comments
hotnewtop
Profile icon
teaganturner

Actually take a look at the intelligent guide underneath and get to know the name of colleges, the course offered, area, and the connection to the magicessays on the right half of the guide can assist you with sifting courses containing programming and non-programming subjects. Country-based sifting is likewise worked with by the Country's gadget.

Profile icon
RYANTADIPARTHI

i guess you could make a function called p or print, and in that function, put system.out.println();. When you want to print, use print.

Profile icon
IntellectualGuy

Hello, you could make a method and use it whenever you want to print it like so

public static void print(String text) { System.out.println(); }

or there is

public static void print(String text) { // Notice that in the first method it's println and in this one it's print System.out.print(); }

If you wanted to do print instead of println.

Repl.it doesn't have this feature but if you use eclipse java (Details on how to download that here), then type sysout and then ctrl + space.

Profile icon
programmeruser
void print(String data) { System.out.println(data); }
Profile icon
EpicGamer007

@programmeruser even better:

public static void println(String data) { System.out.println(data); } public static void print(String data) { System.out.print(data); }
Profile icon
TsunamiOrSumth

make a function called print and make it just do that?