Posted By

visudex on 11/18/10


Tagged

class testing method print function helper tester


Versions (?)

Helper method to print to the console


 / Published in: Java
 

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();

  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  

You need to login to post a comment.