Correct so that you don't wrongly get integer division.
Don't system.exit().
Fix javadoc
Prefer parseInt/parseDouble when filling a primitive field.