So here is my assignment:
Write a java program to read a name from user .
The name is typed all in one line.
The name may include 3 or 2 or 1 part from:
firstname
middlename
lastname
You should create an email id from the name and print it.
the email is made of firstletter of firstname followed by up to 7 characters of lastname and @gpc.edu
Don't use printf method.
Even if the name contains mixed case, your email should be all in lowercase.
Example input : John Doe
Example output: jdoe@gpc.edu
Example input : John M. Doe
Example output: jdoe@gpc.edu
Example input : John Doe Smith
Example output: jsmith@gpc.edu
Example input: George Washington
Example output: gwashing@gpc.edu
I'll be appreciate with your help.