Question: Given string userDate on one line and string currYear on a second line, append a comma and a space to userDate. Then, append currYear to
Given string userDate on one line and string currYear on a second line, append a comma and a space to userDate. Then, append currYear to userDate.
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 userDate;
String currYear;
userDate scnrnextLine;
currYear scnrnextLine;
Your code goes here
System.out.printlnuserDate;
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
