Crenox

CatMeows Program

Jan 21st, 2014
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. package samkough.main;
  2.  
  3. public class CatMeows
  4. {
  5. public static void main(String args[])
  6. {
  7. CatMeowsTest cmt = new CatMeowsTest();
  8.  
  9. cmt.meow();
  10. System.out.println(" ");
  11.  
  12. cmt.purr();
  13. System.out.println(" ");
  14.  
  15. cmt.scratch();
  16. System.out.println(" ");
  17. }
  18. }
  19.  
  20. -----------------------------------------------------------------------------------------------------------------
  21. package samkough.main;
  22.  
  23. public class CatMeowsTest
  24. {
  25. void meow()
  26. {
  27. System.out.println("meow");
  28. }
  29.  
  30. void purr()
  31. {
  32. System.out.println("purr");
  33. }
  34.  
  35. void scratch()
  36. {
  37. System.out.println("'scratches'");
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment