All pastes #355777 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-02-14 18:51 UTC
rendered paste body
import java.util.ArrayList;
import java.util.Random;
import TerminalIO.KeyboardReader;

public class Main {
    public static String nounArray[] = new String[3];
    public static String verbArray[] = new String[1];
    public static KeyboardReader reader = new KeyboardReader();
    
    
    public static void main(String[] args) {
       popArray();
       popArrayVerb();
      System.out.println(" The " +nounArray[0]+" " +verbArray[0]+" the "+nounArray[1]+" with a "+nounArray[2]);
     
}  
    public static void popArray() {
        System.out.println("Lets make a sentence :) ");
        System.out.println("Please type in 3 nouns");
        nounArray[0] = reader.readLine();
        for(int i = 1; i < nounArray.length ;i++) {
        System.out.println("Please enter another noun");
        nounArray[i] = reader.readLine();
        }
    }
        
       public static void popArrayVerb() {
               System.out.println(" Type in a verb: ");
               verbArray[0] = reader.readLine();
       }
}