Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write two statements to read values for birthMonth and birthYear, separated by a space, then write a statement to output the month, a slash, and

image text in transcribed

Write two statements to read values for birthMonth and birthYear, separated by a space, then write a statement to output the month, a slash, and the year. End with newline. Ex: The output is shown for user input of: 1 2000 1/2000

Challenge 1.7.2: Read multiple user inputs Activity Write two statements to read values for birthMonth and birthYear, separated by a space, then write a statement to output the month, a slash, and the year. End with newline. Ex: The output is shown for user input of: 1 2000 1/2000 1 import java util. Scanner; 3 public class InputExample 4 public static void mainCString args) 1 Scanner scnr new Scanner System in int birthMonth 0; int birthYear 0; Your solution goes here 10 return 12 h 13 Run Feedback

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago