Tuesday, May 5, 2009

new wan

import java.util.*;

public class JackTheRipper{

public static String fullBorder = "???????????????????????????????????????????????????????????????????????????";
public static int paddingSize = 2;
public static String padding = "??";
public static void main(String args[]){
String a,b,c,d,e;

Scanner console = new Scanner(System.in);
System.out.println("|Enter name: |");
a= console.nextLine();
System.out.println("|Enter gender: |");
b= console.nextLine();
System.out.println("|Enter age: |");
c= console.nextLine();
System.out.println("|Enter Crime: |");
d= console.nextLine();
System.out.println("|Enter Present jail: |");
e= console.nextLine();
System.out.println(fullBorder);
System.out.println("|Name: "+a+" | \n|Gender: "+b+" | \n|Age: "+c+" | \n|PresentJail: "+d+" |");
System.out.println("|" + a + " is a " + b + " at the age of " + c + " which is imprison in " + e + " for " + d + "." + "|");
System.out.println(fullBorder);


if (d.equals("raping and murdering"))

System.out.println("Sentence to death");

else if (d.equals("drug vending"))

System.out.println("Hang to death");

else

System.out.println("lala");

System.exit(0);
}
}

No comments: