import java.io.*; import java.lang.*; public class Io { private static BufferedReader keyIn = new BufferedReader(new InputStreamReader(System.in)); private static String line; private static String numStar; private static char star, empty; private static int point; private static short num; public static char charInput() throws IOException { System.out.println(); System.out.println(); System.out.println("Please entry a \"*\", followed by two decimal numbers"); line = keyIn.readLine(); star = line.charAt(0); line = line.substring(2); return star; } public static short decimalInput() throws IOException { empty= line.charAt(0); while (empty ==' ') { line = line.substring(1); empty = line.charAt(0); } point = line.indexOf(' ', 0); if (point != -1) { numStar = line.substring(0,point); line= line.substring(point+1); } else numStar = line; num= Short.valueOf(numStar).shortValue(); return num; } public static void charOutput (char ch)throws IOException { System.out.print(ch); } public static void decimalOutput (short decimal)throws IOException { System.out.print(decimal); } } //end of class