DEV Community

Discussion on: FIXED: Troubles in Java please help, my teacher has been ignoring my questions for almost a week

Collapse
 
geraldatanga44 profile image
Tangang Gerald Atanga

System.out.println("The height for rectangle 1 is: " + 40);
System.out.println("The width for rectangle 1 is: " + 4);
System.out.println("The height for rectangle 2 is: " + 359);
System.out.println("The width for rectangle 2 is: " + 3.5);

add some getters for these
hardcoding values won't help you much a bigger problem