/**
 * Demonstrates how a method can be used for output.
 * Input { 3, 4 } on the Bluej command line and the program
 * will output:
 *
 * x + y = 34
 * Done!
 *
 * @author TK Rogers
 * @version 5/18/12
 */
public class HelloMethod {
   public static void main ( int args [ ] ) {
   // the line of code below calls the output method
   // and causes it to run. When output finishes,
   // the program retuns to the next line and proceeds.
       output ( args [ 0 ] , args [ 1 ] ) ;
       System.out.println ( "Done!" ) ;
   }
   
   public static void output ( int x , int y ) {
   // Note:" x + y = " is a string. the other plus
   // signs are concatination operators, hence the
   // output is x + y = 34
       System.out.println ( "x + y = " + x + y ) ;
   }
}