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

Connected

Exercise

String concatenation

Combining text is one of the most common operations in programming. Whether you're building personalized messages, creating reports, or formatting output, you'll use String concatenation constantly. Let's practice this essential skill!

Instructions

100 XP
  • Use String concatenation to add itemName to the first printout statement.
  • Add itemPrice to the second printout statement.