Level 3 hints for clp --------------------- Here's I chose to structure my solution, including a complete main. public class clp { public static void main(String args[]) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String line; while ((line = in.readLine()) != null) { System.out.println("----------------------------------------"); System.out.println("Command line: " + line); processLine(line); } } private static void processLine(String line) { ... } private static void processCommand(ArrayList words, boolean first, boolean last) { ... } }