| Contact PSVM (Q & A) | Notes Below Audio | [toc] [prev] Slide 8 of 13 [next] |
|
|
| 1, 2, 3, 4, 5, 6, 7, [8 (top)], 9, 10, 11, 12, 13, [Lab] |
|
Notes for Slide 08 This slide shows an example of a task that you might want to perform on Strings. If you are given a String that contains both a first name and a last name separated by a space, the getLastName() method will extract the last name and place it into another String. Since this method is not supplied for you by Sun Microsystems, you would have to write the method yourself. 1, 2, 3, 4, 5, 6, 7, [8 (top)], 9, 10, 11, 12, 13, [Lab] |