/**
 * Write a program that computes your initials from your full name and displays them
 * in capital letter delimited by a period.
 * 
 * Example:
 * Name: alifiya hussain
 * output: A.H.
 * 
 **/

public class StringOps {
  
  public static void main (String [] args) {
    
    String myName = "alifiya hussain";
    char firstinit = myName.charAt(0);
    char secondinit = myName.charAt (myName.indexOf(" ") +1);
    String initials = firstinit + "." + secondinit + ".";
    System.out.println(initials.toUpperCase());
  }
  
}

