package rebelsky.hw20; import java.io.PrintWriter; import java.io.BufferedReader; import java.io.InputStreamReader; public class TestOne { public static void main(String[] args) throws Exception { // Prepare for input and output. PrintWriter pen = new PrintWriter(System.out, true); BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in)); // Create a helpful assistant. Assistant sam = new Assistant(); // Read two strings. pen.print("Enter one string: "); pen.flush(); SillyString one = new SillyString(keyboard.readLine()); pen.print("Enter another string: "); pen.flush(); GeneralString two = new GeneralString(keyboard.readLine()); // Print out the smallest. pen.println("min string: " + sam.min(one,two)); } // main(String[]) } // class TestOne