Difficulty: Intermediate | Prerequisites: Java Fundamentals, Methods and Parameters study notes
Up to this point, most of what you have worked with are primitive types and static methods. This is where Java's object-oriented nature starts to show. Objects combine state (data) and behaviour (methods) into a single unit. Strings are the most common object you will use, and they come with their own rules, especially immutability and the need to compare them with .equals() rather than ==. The Scanner class is how your programs read user input. Characters (char) bridge the gap between primitives and strings. Formatted output with printf gives you precise control over how results are displayed. If you have fallen behind, make sure you a…