/** 10/15/2018 */

public class LocalVars
  /** This class shows local variables in methods */
{ 
  
 public static void main(String[]  args)
 {
  int num=1;
  System.out.println("in main, num is " + num);
  sayHello(25.5);  // pass in a literal
  sayHello(num); // pass in a variable of type int
  sayGoodBye();
  showSum(num, 30); // NO DATATYPES IN CALL
 }

 /** This  method prints Hello World to the screen. */
 public static void sayHello(double number)  
   // number gets initialized to whatever value was passed in
 {
   System.out.println("just entered method, number is " + number);
   System.out.println("Hello World!");
   System.out.println("done inside method, ready to leave.");
 }
 
 /** this method prints Good Bye to the screen */
 public static void sayGoodBye()  
 {
   int num=67;
   System.out.println("Good Bye! num is "+ num);
 }
 
 public static void showSum(int x, int y) 
 {
   System.out.println("x + y = " + (x+y));
 }
} 

/** Write a method that accepts 2 integer values and muliplies
  * them and displays the product.
  * In main, you will read in two numbers (prompt the user) and then
  * you'll call the method on the values that were read in.
  */




