Say I have allot of code like..
"
System.out.println("This is code");
System.out.println("This is code");
System.out.println("This is code");
System.out.println("This is code");
"
This same code keeps coming up in my program can I shorten it all into one line I can just use to call it in the future??