Answered step by step
Verified Expert Solution
Question
1 Approved Answer
My programs compile but I don't think I'm doing the questions right, need help asap. Appreciated and will thumbs up! Thank you. Question 1: Inverted
My programs compile but I don't think I'm doing the questions right, need help asap. Appreciated and will thumbs up! Thank you.
Question 1: Inverted String Class [Invstring.java] - 20 points Write a Java class that appears like the String class however, when printed it reverses the sequence of characters. An example of how your class will behave is given below: InvString s= new InvString ("This is a test"); System.out.println(s); The output will be: Tset a si siht Question 2: Circle Class [Cicrle.java] - 10 points Write a Java class that represents a circle. Objects of the class will be circles of a given radius. The constructor will take two arguments, a label for the circle and its radius. When printed, the circles will display information about their Radius, Area, and Circumference. An example of how your class will behave is given below: Circle c=new Circle("My Circle", 20); //Radius is 20 System.out.println (c) ; The output will be: My Circle RadiusAreaCircumference:20:1256.64:125.66 The area can be calculated using the formula r2. The formula for circumference is 2r where r is the circle's radiusStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started