Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. class Test {
  2.     private int _x,_y,_z;
  3.  
  4.     // the rest of the code
  5.  
  6.     public String toString() {
  7.         String ret="";
  8.    
  9.         ret+="the numbers are:: \n";
  10.         ret+=_x+" ";
  11.         ret+=_y+" ";
  12.         ret+=_z+"\n";
  13.  
  14.         return ret;
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement