String Concatenation in Java
String Concatenation is about working with text in Java. Remember the base rule first: String is immutable. Compare content with equals, not ==.
For String Concatenation, common APIs from memory: length(), charAt(i), substring(start, end), contains, equalsIgnoreCase, toUpperCase. Index starts at 0.
If String Concatenation is StringBuilder/StringBuffer, you change text in place with append. If it is comparison, show == false and equals true for two new String("Hi").
For String Concatenation, say the output before you code. Off-by-one on substring is a common trap (end index is exclusive).
Let's take this on the board with one tiny Main class — no extra files. String Concatenation in Java — shows length, substring, case change, and equalsIgnoreCase. Start from main, go line by line, and stop at each print. That output is the proof for String Concatenation.
== vs equals() on String is a classic trap.