@@ -0,0 +1,383 @@
+import java.io.FileReader;%0A%0Apublic class EightBall %7B%0A%09public static void main(String args%5B%5D) throws Exception %7B%0A%09%09char%5B%5D buffer = new char%5B1024%5D;%0A%09%09String filename = args%5B0%5D;%0A%09%09try %7B%0A%09%09%09filename = %22%22 + (Integer.parseInt(filename) %25 3);%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09System.out.println(%22Invalid input.%22);%0A%09%09%7D%0A%09%09new FileReader(filename).read(buffer);%0A%09%09System.out.println(buffer);%0A%09%7D%0A%7D%0A

Create eightball.java