New to java just wondering if you guys could tell me if i did this problem correct?

Printable View