Episode 16 - Reading Documentation


  1. Create an array with 4 numbers. User the "<<" operator to add 2 more numbers.
  2. Create an array of 4 names. Use the "reverse" method and and print out the names in reverse order.
  3. Look up the "split" method for strings. Describe what happens when you run "I love purple hippo".split. What happens if you use split("") instead?
  4. Write a program that asks the user to enter a word, and the program will puts the letters of that word in random order. (For example, "cat" may puts "atc" or "tac" or "act" etc.) To accomplish this, investigate the following methods: