Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1.  
  2. public class CircleTester
  3. {
  4.  
  5. public static void main(String[] args)
  6. {
  7. Circle cirA = new Circle();
  8. Circle cirB = new Circle(24.7);
  9. System.out.println(" the radius of cirA is " + cirA.getRadius());
  10. System.out.println(" the radius of cirB is " + cirB.getRadius());
  11. System.out.println(" the diameter of cirB is " + cirB.getDiameter());
  12. System.out.println(" the circumference of cirB is " + cirB.getCircumference());
  13. System.out.println(" the area of cirB is " + cirB.getArea());
  14. System.out.println("??????" + cirB);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement