Java pastebin - collaborative debugging tool
The source code is here !
import java.io.*;
public class Cowsay {
String cowsay;
String dashLength="";
BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
public void askInput() throws IOException {
cowsay=stdin.readLine();
for(int i=0;i<cowsay.length();i++) {
dashLength=dashLength+("-");
}
}
public void printCow() {
System.out.println("--"+dashLength+"--");
System.out.println("< "+cowsay+" >");
System.out.println("--"+dashLength+"--");
System.out.println(" | ^__^");
System.out.println(" - (oo)|_______");
System.out.println(" (__)| )/|/");
System.out.println(" ||----w |");
System.out.println(" || ||");
}
public static void main(String[] args) throws IOException {
Cowsay c1 = new Cowsay();
c1.askInput();
c1.printCow();
}
}
Credits goes to the rightful owner !


Sign In
Create Account



Back to top









