public class MyFirstMethod { public static void main(String[] args) { printFour(); // calling the method, or invoking the method System.out.println(doubleThatNum(4.5)); } // main // print 4 to the console // parameters: none // return: nothing - void public static void printFour() { System.out.println(4); } // printFour // doubleThatNum doubles its parameter // parameters: double foo // return: double public static double doubleThatNum(double foo) { return 2*foo; } // printFour // Write a method // Name: fiftyFifty // Purpose: if parameter is < 50 print "you are a wise one master Skywalker" // otherwise print "The dark side is strong today" // Parameters: int // Return: none // Write a method // Name: getNumFromUser // Purpose: asks the user for an integer and returns the integer. // Parameters: none // Return: int } // MyFirstMethod