Helper method to print to the console


/ Published in: Java
Save to your folder(s)

Ever got tired of writing System.out.print(); all the time when testing, well, to avoid this, just create a helper method that will narrow it down to print();


Copy this code and paste it in your HTML
  1. //Put this method at the end of your Tester Class
  2.  
  3. public static void print(Object obj)
  4. {
  5. System.out.print(obj);
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.