Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Testing {
- public static String Name;
- public static void main( String args[]) {
- Scanner input = new Scanner(System.in);
- System.out.println("What is your name, hero?");
- String hero1Name = input.nextLine();
- System.out.println("Welcome to Castle Alpha, " + hero1Name +"!");
- System.out.println("What is the name of your companions?");
- System.out.println("What is your first companion's name?");
- String hero2Name = input.nextLine ();
- System.out.println("Welcome to the party, " + hero2Name + "!");
- System.out.println("END");
- }
- }
- // int health = 100;
- // int mana = 100;
- // int stamina = 100;
- // int STR = 10;
- // int CON = 10;
- // int INT = 10;
- // int WIS = 10;
- // int DEX = 10;
- // int CHA = 10;
- ////////////////////////////////////
- public class Name {
- public void displayMessage(String name) {
- }
- }
Add Comment
Please, Sign In to add comment