Wednesday, March 4, 2015

Warm Up: 1

Task: Enter user full name and split the full name into the different parts (first and last name).

Method 1: Use .indexOf( ) and .subString( )


This method had more steps however very easy to implement and conceptually understand.





Method 2: Use .split( )

I felt this method was faster and easy to implement in my program

No comments:

Post a Comment