Answers

2016-03-23T22:26:24+05:30
Import java.util.*;
public class Initial
{
   public static void main()
  {
     Scanner sc = new Scanner(System.in);
     System.out.println("Enter Full Name" : );
     String s = sc.nextLine();
   
     int ln = s.length();
     s = s.trim();
     int p = s.lastIndexof( ' ' )
     System.out.println(s.chatAt(0) + " " );
     for(int i = 0; i < p;i ++)
    {
       char ch = s.chatAt(i);
     
       if(ch == ' ' )
       System.out.println(s.chatAt(i + 1) + " " )
    }

   System.out.println(s.substring(p));

  }

}

Please Keep Check On When To Write Capital Letter and when to Write Small Letters as many of Them make Mistake In That
I Have Checked The Program and its 100% correct

Example =
Input = Lelouch Vi Britannia
Output = L.V.B

Hope U Understood!!
Mark This Brainliest If This Helped You 
Thankx!!!!!

Happy Holy in Advance!!!!!!!! 

1 5 1