Question: My first statement is testing correctly but everything that I've tried for my statement has been incorrect. Please assist. Write two statements to read in

My first statement is testing correctly but everything that I've tried for my statement has been incorrect. Please assist.
Write two statements to read in values for birthMonth followed by birthYear, separated by a space. Write a statement to print the date using the format birthMonth/birth Year. Do not end with a newline. Ex: 1 2000 (User's input) 1/2000 (Program's output) 1 import java.util.Scanner; 3 public class InputExample { 4 public static void main(String [] args) Scanner scnr = new Scanner(System.in); int birthMonth = 0; int birthYear = 0; System.out.print("1/2000); birthMonth = scnr.nextInt(); birthYear scnr.nextInt(); 10 12 13 14 15 return; Run Testing with user input 1 2000 Your output: 1/2000 Testing with user input 5 1950 Expected output: Your output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
