If I was doing a code review for one of my programmers, I would make these comments:
Comments are good.
Use descriptive variable names - P, N and R tell me nothing.
Get rid of 'Assignment2 assignment21 = new Assignment2();' its not needed.
Fix your indentation of comments and code.
Catch the NumberFormatException thrown from parseInt and parseDouble and do something useful like retrying the input.
|