☕ Java Methods

Methods in Java are blocks of code designed to perform specific tasks. You can reuse them to avoid repeating code.

🖥️ Example: Defining and Calling a Method

This example defines a simple method called greet that prints a message.

Output will appear here...
💡 Tip: Methods help you keep your code organized, reusable, and readable.