code should be in java 1. Write a class called Rectangle that represents a rectangular two-dimensional region. Your Rectangle objectsshould have the following fields and methods: int width, int height Where width and height are the dimensionsof the rectangle. Write accessor methods (i.e. getWidthU, getHeight()) that retrieve the values stor… Show more… Show morecode should be in java Computer Science Engineering & Technology Java Programming JAVA 152