1: 2: public class Rectangle2Demo 3: { 4: public static void main(String[] args) 5: { 6: Rectangle2 box = new Rectangle2( ); 7: box.setDimensions(10, 5); 8: System.out.println("The area of our rectangle is " + box.getArea( )); 9: } 10: }