

public class ConsoleInDemo
{
   public static void main(String[] args)
   {
      System.out.println("Enter number of pods:");
      int numberOfPods = ConsoleIn.readLineInt( );

      System.out.println("Enter number of peas in a pod:");
      int peasPerPod = ConsoleIn.readLineInt( );

      int totalNumberOfPeas = numberOfPods*peasPerPod;

      System.out.print(numberOfPods + " pods and ");
      System.out.println(peasPerPod + " peas per pod.");
      System.out.println("The total number of peas = "
                                          + totalNumberOfPeas);
   }

}
