Advertisement
fosterbl

PointTester.java

Feb 12th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.05 KB | None | 0 0
  1. public class PointTester{
  2.    public static void main(String[] args){
  3.       //Uncomment this section after completing constructors, getters, setters, and toString
  4. //       Point p1 = new Point();
  5. //       System.out.println( p1.getX() );
  6. //       System.out.println( p1.getY() );
  7. //       System.out.println( p1 );
  8. //       p1.setX(3);
  9. //       p1.setY(4);
  10. //       System.out.println( p1 );
  11. //       Point p2 = new Point(4,5);
  12. //       System.out.println( p2 );
  13.      
  14.       //Uncomment this section after completing quadrant
  15. //       System.out.println( p1.quadrant() );
  16.      
  17.       //Uncomment this section after completing flip
  18. //       p1.flip();
  19. //       System.out.println( p1 );
  20. //       System.out.println( p1.quadrant() );
  21.  
  22.       //Uncomment this section after completing isVertical
  23. //       System.out.println( p1.isVertical(p2) );
  24. //       Point p3 = new Point( 4, 8 );
  25. //       System.out.println( p2.isVertical(p3) );
  26.      
  27.       //Uncomment this section after completing slope
  28.       // System.out.println( p1.slope(p2) );
  29.    }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement