أرجو شرح الجزء الملون من هذا البرنامج
// program to accept the full name of person and display the first and the last name.
Import java.util.*;
Public class Name
{
Public static void main (String [] args)
{
Scanner stdin=new Scanner (System .in);
System.out.print ("Enter your full name");
String s =stdin.nextline ();
Int n =s.IndexOf (" ", 0);
String f=s.substring (0, n);
int m=LastIndexOf (" ",s.length()-1);
String l=s.substring (m+1);
System.out.println (f+" "+l);
}
}