desk+100; isn't a proper Java statement. desk = desk + 100; will do what you want. That takes care of two errors.
lab3_141.java:20: ';' expected
System.out.print("Enter the number of drawers: ");
That's because of this statement:
desk = 200);
The ; should be after the 200.




Reply With Quote