Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- /**
- *
- * @author martin
- */
- import uulib.Console;
- //Print several versus of the song
- public class OldMcDonald {
- public static void animal(String noise, String animal) {
- animal = Console.getString("Enter the type of animal");
- noise = Console.getString("enter the noise the animal makes");
- }
- public static void main(String[] args) {
- System.out.println("Old McDonald had a farm, E-I-E-I-O ");
- System.out.println("And on the farm he had a " + animal + " E-I-E-I-O");
- System.out.println("With a " + noise + noise + "here and a " + noise + noise + there ");"
- System.out.println("Here a " + noise + "there a " + nosie + " everywhere a " + noise + noise);
- System.out.println("Old McDonald had a farm, E-I-E-I-O ");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement