A String is text in double quotes: "Hello". This module is about joining strings and combining them with numbers.
"Hello"
The + operator between strings joins them (concatenation). No space is added for you — any spaces must be inside the quotes.
+
System.out.println("Hello" + "World"); // HelloWorld System.out.println("Hi" + " " + "there"); // Hi there
▶ Try it: run this, then change something and run it again.
What does "Hello" + "World" print?
"Hello" + "World"
Type exactly what this prints:
System.out.println("Hi" + " " + "there");
Which expression prints exactly cat dog (with a space)?
cat dog
Match each expression to what it prints.