Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class BlackDeathTest {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- System.out.println("The Black Death Test");
- System.out.println("When did the plague arrive in western Europe?");
- String arrivalYear = "1347";
- String arrivalYearA = scan.nextLine();
- System.out.println(arrivalYear.equals(arrivalYearA));
- System.out.println("How many millions of people died?");
- String people = "50";
- String peopleA = scan.nextLine();
- System.out.println(people.equals(peopleA));
- System.out.println("What is the full name of the illness (with lowercase letters)?");
- String illnessName = "bubonic plague";
- String illnessNameA = scan.nextLine();
- System.out.println(illnessNameA.equals(illnessName));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment