Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CircleTester
- {
- public static void main(String[] args)
- {
- Circle cirA = new Circle();
- Circle cirB = new Circle(24.7);
- System.out.println(" the radius of cirA is " + cirA.getRadius());
- System.out.println(" the radius of cirB is " + cirB.getRadius());
- System.out.println(" the diameter of cirB is " + cirB.getDiameter());
- System.out.println(" the circumference of cirB is " + cirB.getCircumference());
- System.out.println(" the area of cirB is " + cirB.getArea());
- System.out.println("??????" + cirB);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement