YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Friends Instance Variable - Intro to Java Programming

Get Embed Code
7 Languages

Showing Revision 4 created 05/24/2016 by Udacity Robot.

  1. Great. So far, we have our class for person that has an instance variable for
  2. the name. Now we need to store the friends. The string containing his friends
  3. will be TJ Jamesha. You'll learn a cleaner way to do this later, but this'll
  4. work for now. How would you declare an instance variable for a person's
  5. friends?