zopiac

Game Alpha

Oct 6th, 2010
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.88 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Testing {
  3.     public static String Name;
  4.     public static void main( String args[]) {
  5.         Scanner input = new Scanner(System.in);
  6.         System.out.println("What is your name, hero?");
  7.         String hero1Name = input.nextLine();
  8.         System.out.println("Welcome to Castle Alpha, " + hero1Name +"!");
  9.         System.out.println("What is the name of your companions?");
  10.         System.out.println("What is your first companion's name?");
  11.         String hero2Name = input.nextLine ();
  12.         System.out.println("Welcome to the party, " + hero2Name + "!");
  13.         System.out.println("END");
  14.     }
  15. }
  16.  
  17. //      int health = 100;
  18. //      int mana = 100;
  19. //      int stamina = 100;
  20. //      int STR = 10;
  21. //      int CON = 10;
  22. //      int INT = 10;
  23. //      int WIS = 10;
  24. //      int DEX = 10;
  25. //      int CHA = 10;
  26.  
  27. ////////////////////////////////////
  28.  
  29.  
  30. public class Name {
  31.     public void displayMessage(String name) {
  32.     }
  33.  
  34. }
Add Comment
Please, Sign In to add comment