100%
LESSONS & TOPICS

Try it out!

Try it out!

Create 3 additional System.out.println statements to do the following:

  1. Print 42 — don’t add quotes. Let Java’s println method cast the number to a string for you.
  2. Print 3.14, this time in quotes.
  3. Print the result of 7 – 2.