Description: Write a Java application, create a Rectangle class attributes of length, width, defined as private, int type, default value are a class provides the following method: public boolean setLength (int length)// set length to ensure that no negative public boolean setWidth (int width)// set width, to ensure that there will be no negative public int getLength ()// get length public int getWidth ()// length public int word perimeter ()// calculate the perimeter public int area ()// to calculate the area public boolean isSuqare ()// determine whether the square and then write a test class, length and width of the input by the user to print out the relevant information.
To Search:
File list (Check if you may need any files):
App1.java