SHARE
TWEET

Henrik Klaus Martin

a guest Jan 16th, 2009 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. public class myOrders {
  4.         private int theta, distance;
  5.  
  6.         public myOrders()
  7.         {
  8.                 setAll(0,0);
  9.         }
  10.        
  11.         public myOrders(int theta, int distance) {
  12.                 setAll(theta, distance);
  13.         }
  14.        
  15.         public void setAll(int theta, int distance) {
  16.                 this.theta = theta;
  17.                 this.distance = distance;
  18.         }
  19.        
  20.         public int getTheta() {
  21.                 return theta;
  22.         }
  23.  
  24.         public void setTheta(int theta) {
  25.                 this.theta = theta;
  26.         }
  27.  
  28.         public int getDistance() {
  29.                 return distance;
  30.         }
  31.  
  32.         public void setDistance(int distance) {
  33.                 this.distance = distance;
  34.         }
  35. }
RAW Paste Data
Want to get better at Java?
Learn to code Java in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top