Respuesta :

Answer:

The Java code is given below with appropriate comments

Explanation:

//TestCode.java

import java.util.Scanner;

public class TestCode{

   public static void main(String[] args) {

       Scanner scnr = new Scanner(System.in);

       //initialising the birth month and birth year

       int birthMonth, birthYear;

       //getting the inputs for the birth month and birth year

       birthMonth = scnr.nextInt();

       birthYear = scnr.nextInt();

     //printing out the birth month and birth year, separated by a slash (/)

       System.out.println(birthMonth+"/"+birthYear);

   }

}