Methods in Java
A method is a chunk of code that only runs when it's called. They exist so you're not stuck repeating the same code over and over.
A method is a chunk of code that only runs when it's called. They exist so you're not stuck repeating the same code over and over.