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

Connected

Exercise

Assign and print

Once you've created variables, you can assign values to them and display those values. This is a fundamental pattern you'll use throughout your programming journey. In this exercise, two variables have already been created for you: language and yearOfOrigin.

Instructions

100 XP
  • Create a text variable called creator and assign "James Gosling" to it.
  • Print the creator variable.