Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6.  
  7. /**
  8. *
  9. * @author martin
  10. */
  11. import uulib.Console;
  12. //Print several versus of the song
  13.  
  14. public class OldMcDonald {
  15.  
  16. public static void animal(String noise, String animal) {
  17. animal = Console.getString("Enter the type of animal");
  18. noise = Console.getString("enter the noise the animal makes");
  19.  
  20. }
  21.  
  22. public static void main(String[] args) {
  23. System.out.println("Old McDonald had a farm, E-I-E-I-O ");
  24. System.out.println("And on the farm he had a " + animal + " E-I-E-I-O");
  25. System.out.println("With a " + noise + noise + "here and a " + noise + noise + there ");"
  26. System.out.println("Here a " + noise + "there a " + nosie + " everywhere a " + noise + noise);
  27. System.out.println("Old McDonald had a farm, E-I-E-I-O ");
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement