1 import java.util.Scanner;
2
3 public class Initials
4 {
5 public static void main(String[] args)
6 {
7 Scanner in = new Scanner(System.in);
8 System.out.print("Enter your first name: ");
9 String first = in.nextLine();
10 System.out.print("Enter your significant other's first name: ");
11 String second = in.nextLine();
12 String initials = first.substring(0, 1)
13 + "&" + second.substring(0, 1);
14 System.out.println(initials);
15 }
16 }