subject

I don't know how to solve this one. I don't even know how to write it. I need help. Please.

Write two scnr. nextInt statements to get input values into birthMonth and birthYear. Then write a statement to output the month, a slash, and the year. End with newline.

The program will be tested with inputs 1 2000 and then with inputs 5 1950. Ex: If the input is 1 2000, the output is:
1/2000

Note: The input values come from user input, so be sure to use scnr. nextInt statements, as in birthMonth = scnr. nextInt();, to get those input values (and don't assign values directly, as in birthMonth = 1).
import java. util. Scanner;

public class InputExample {
public static void main(String [] args) {
Scanner scnr = new Scanner(System. in);
int birthMonth;
int birthYear;

birthMonth = scnr. nextInt();

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:20
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy.a. a fire occurs on the premises, and the building isbadly damaged.b. a burglar steals some money and securities from anunlocked safe.c. a business computer is damaged by vandals whobreak into the shop after business hours.d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm.til
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
In the microsoft® access® and microsoft excel® programs, the ribbon contains tabs that are divided into with like tools in them. parts groups containers bunches
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What is not a type of text format that will automatically be converted by outlook into a hyperlink?
Answers: 1
You know the right answer?
I don't know how to solve this one. I don't even know how to write it. I need help. Please.
Questions
question
Mathematics, 27.05.2020 06:58
question
English, 27.05.2020 06:58
Questions on the website: 13722363