BlackWolfy

The Black Death Test Simple (3 questions)

Jan 16th, 2022 (edited)
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.87 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class BlackDeathTest {
  4.     public static void main(String[] args) {
  5.         Scanner scan = new Scanner(System.in);
  6.         System.out.println("The Black Death Test");
  7.         System.out.println("When did the plague arrive in western Europe?");
  8.         String arrivalYear = "1347";
  9.         String arrivalYearA = scan.nextLine();
  10.         System.out.println(arrivalYear.equals(arrivalYearA));
  11.         System.out.println("How many millions of people died?");
  12.         String people = "50";
  13.         String peopleA = scan.nextLine();
  14.         System.out.println(people.equals(peopleA));
  15.         System.out.println("What is the full name of the illness (with lowercase letters)?");
  16.         String illnessName = "bubonic plague";
  17.         String illnessNameA = scan.nextLine();
  18.         System.out.println(illnessNameA.equals(illnessName));
  19.     }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment