so far for my program i have
import java.util.*; public class CalculateChange { public static void main(String[] args) { String s1, s2; Scanner keyboard = new Scanner(System.in); System.out.print("Enter your name: "); s1 = keyboard.nextLine(); System.out.print("Enter current date: "); // in format of mm/dd/yyyy s2 = keyboard.nextLine(); String mutation1, mutation2, mutation3; mutation1 = s1; mutation2 = mutation1.toUpperCase(); mutation3 = mutation2.substring(0, 1); System.out.println("===== Ref. # " + mutation3); } }
i am stuck from here... for the last line it is to print in the format
of ===== Ref. #JSMITH091003 =====
Where the J is the first letter of the name entered for s1 and SMITH is the last
name entered for s1 and then 091003 for the date in format of yy/mm/dd
Note that JSMITH is not what hte user entered just an example of the output and i cant use the Next( ) method