I got ' r can't be resolved error'; how should I construct Rectangle r?
Type: Posts; User: JlovesJava
I got ' r can't be resolved error'; how should I construct Rectangle r?
x and y are the co-ordinates of upper left corner and height and width are given as above. It suppose to return perimeter of the rectangle. I could n't find where to start? I know the formula to get...
public class Rectangle {
public static void main(String[] args) {
}
public Rectangle(int x, int y, int height, int width)