|
|
@ -57,12 +57,11 @@ public class WorkingWithStrings {
|
|
|
|
System.out.println("The Last Letter Of The Name is " + last);
|
|
|
|
System.out.println("The Last Letter Of The Name is " + last);
|
|
|
|
|
|
|
|
|
|
|
|
// Generating userID from strings entered
|
|
|
|
// Generating userID from strings entered
|
|
|
|
Scanner sc = new Scanner(System.in);
|
|
|
|
|
|
|
|
System.out.println("Please enter your first name: ");
|
|
|
|
System.out.println("Please enter your first name: ");
|
|
|
|
String firstName = sc.next();
|
|
|
|
String firstName = in.next();
|
|
|
|
System.out.println("Please enter your last name: ");
|
|
|
|
System.out.println("Please enter your last name: ");
|
|
|
|
String secondName = sc.next();
|
|
|
|
String secondName = in.next();
|
|
|
|
sc.close();
|
|
|
|
in.close();
|
|
|
|
|
|
|
|
|
|
|
|
LocalDateTime nowIsTheTime = LocalDateTime.now();
|
|
|
|
LocalDateTime nowIsTheTime = LocalDateTime.now();
|
|
|
|
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyyMMdd");
|
|
|
|
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyyMMdd");
|
|
|
|