use nextInt() with the parenthesis since this function has side effect.