therrontelford

CircleTest

Sep 15th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. public class CircleTest {
  2.  
  3.     public static void main(String[] args) {
  4.         Circle round = new Circle();
  5.         Circle bigBoy= new Circle(998.5);
  6.        
  7.        
  8.         System.out.println("The area of round is " + round.getArea());
  9.         System.out.println("The perimeter of round is "+ round.getPerimeter());
  10.         System.out.println("The area of bigBoy is " + bigBoy.getArea());
  11.         System.out.println("The perimeter of bigBoy is "+ bigBoy.getPerimeter());
  12.        
  13.         bigBoy.setRadius(1111);
  14.         System.out.println("The area of bigBoy is " + bigBoy.getArea());
  15.         System.out.println("The perimeter of bigBoy is "+ bigBoy.getPerimeter());
  16.         System.out.println(bigBoy);
  17.        
  18.        
  19.  
  20.     }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment