Question: In java 12 public class Miss 13 14 public static void main(String[] args) 15 tringreplace(1,1%);ississippi); 17 18 System. out.println (a. length) 19aa.replace (ss, s 20
In java
![In java 12 public class Miss 13 14 public static void main(String[]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3c7d546c25_43666f3c7d4a2155.jpg)

12 public class Miss 13 14 public static void main(String[] args) 15 tringreplace("1","1%);ississippi"); 17 18 System. out.println (a. length) 19aa.replace ("ss", "s" 20 System.out.println (a. length)); 21 23 expected answer E2.5 Write a program that constructs a rectangle with area 42 and a rectangle with perim- eter 42. Print the widths and heights of both rectangles Testing E2.6 Look into the API documentation of the Rectangle class and locate the method void add (int newx, int newy) Read through the method documentation. Then determine the result of the follow- ng statements: Rectangle box new Rectangle (5, 10, 20, 30); box.add (0, 0); Write a program AddTester height of box after the call to add. that prints the expected and actual location, width, and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
