Why did I have to specify Solution.A = Integer.parseInt etc...... instead of just being able to specify A = Integer.parseInt etc...... ? A is a public Solution wide variable. Also, why did they put in public static final int MIN = min(A, B); if you can't just print MIN (which already did the calcultation), but have to modify it to call the function yourself ?