Question: finish the code: Given string birthDate on one line and string currYear on a second line, append a comma and a space to birthDate. Then,
finish the code: Given string birthDate on one line and string currYear on a second line, append a comma and a space to birthDate. Then, append currYear to birthDate.
Ex: If the input is:
April
then the output is:
April import java.util.Scanner;
public class StringConcatenate
public static void mainString args
Scanner scnr new ScannerSystemin;
String birthDate;
String currYear;
birthDate scnrnextLine;
currYear scnrnextLine;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
