You need a program but have no need for a graphical user interface. A simple text-oriented interface is sufficient or perhaps all input and output takes place with files. Then use a console application.
import becker.io.*; public class Main { public static void main(String[] args) { int largestSoFar = Integer.MIN_VALUE; TextInput in = new TextInput("data.txt"); while (!in.eof()) { int i = in.getInt(); if (i > largestSoFar) { largestSoFar = i; } } in.close(); System.out.println("The largest was " + largestSoFar); } }
public class <ClassName> { public static void main(String[] args) { <CodeToSolveProblem> } }