Advertisement
Guest User

Cthulhu

a guest
Nov 6th, 2009
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. /**
  2.  *  < moo >
  3.  * -----------
  4.  *       \   ^__^
  5.  *        \  (oo)\_______
  6.  *           (__)\       )\/\
  7.  *               ||----w |
  8.  *               ||     ||
  9.  *
  10.  */
  11. public class Cow {
  12.  
  13.     public Cow() {
  14.         System.out.println("Moo!");
  15.     }
  16.  
  17.     public static String say(String message) {
  18.  
  19.         String cow = "";
  20.  
  21.         cow += "  < " + message + " >\n ";
  22.         for (int i = 0; i < message.length() + 6; i++) {
  23.             cow += "-";
  24.         }
  25.         cow += "\n";
  26.  
  27.         cow += "  \\   ^__^ \n   \\  (oo)\\_______\n      (__)\\       )\\/\n           ||----w |\n           ||     ||";
  28.  
  29.         return cow;
  30.     }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement