Advertisement
Guest User

Stijn

a guest
Apr 27th, 2009
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. public class Point
  2. {
  3.  
  4.    
  5.     public int x;
  6.    
  7.     public int y;
  8.    
  9.    
  10.    
  11.     public Point(int x , int y)
  12.     {
  13.         this.x = x;
  14.         this.y = y;
  15.     }
  16.    
  17.    
  18.     public String toString()
  19.     {
  20.         return "(" + x + ";" + y +")";
  21.     }
  22.    
  23.    
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement