Main.java:6: error: non-static method nextInt() cannot be referenced from a static context int r = Scanner.nextInt(); ^1 error