This is a premium course. To view and assign premium course, you must upgrade your account
A method in Java is a sequence of commands that perform an action.
Some methods need additional information in order to run. When calling a method, the parenthesis allow us to supply data the method will need.
Create a new method named `minutesToHours` that takes an integer amount of minutes and converts it to hours:minutes form.
Some methods return data back to the statement where it was called
You can write methods with more than just one parameter for methods which require more than one piece of data.
Before your drive across the country, it is a good idea to be prepared. Here we'll plan for gas mileage and cost by creating a method
Now we can write a void method that will actually subtract the cost of gas from the money we brought with us.