double oneThird = 1 / 3; String five = "1" + "4"; String someEggs = "eggs: " + 12 + 1;
What values do oneThird, five, and someEggs have?
1️⃣ int numTempuraCards = kbd.nextInt();
What statement needs to go into 1️⃣ for this code to "work"?
Scanner keyboard = new Scanner(System.in); System.out.print("Enter number of cards: "); int numCards = keyboard.nextInt(); System.out.print("Tempura or Dumpling? "); String typeOfCard = keyboard.nextLine(); System.out.println("There are " + numCards + " " + typeOfCard + " cards");
If the user enters 12 when prompted for the number of cards and then tempura when prompted for the type of card, what will be displayed?
What will this code print to the console?
System.out.println("12345678901234567890"); System.out.printf("LABEL:%6d%d", 123, -4); System.out.println("DONE");
By Jordan Pratt