1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Java

Connected

Exercise

Nobel winners in a row

Arrays are very useful for storing values of the same type. They can help you keep information in order, such as the chronological order of your favorite Nobel Prize laureates for Physics!

Instructions

100 XP
  • Create a String array nobelLaureates.
  • Assign the values of 1903, 1921, and 1938 to the array years.