English subtitles

← Get the First Sentence - Intro to Java Programming

Get Embed Code
6 Languages

Showing Revision 5 created 05/25/2016 by Udacity Robot.

  1. What if we just want to print the first sentence of the book, including the
  2. period at the end? What method would you use to print just a piece of a string,
  3. not the whole thing? And at what index does the first sentence end? Here's the
  4. text from Alice in Wonderland that we gave you, or at least the first couple of
  5. sentences. We could sit here and count to find exactly how many characters come
  6. before the period. Or we could use the methods we already know. Implement to
  7. get first sentence method. If it's working it should return this. If you're not
  8. sure what methods to use to get started, you'll have the link to the fact
  9. sheet.