/************************************************
 * This application will demonstrate the use of 
 * Java declaration and assignment
 * @author Nancy Harris
 * @version V1 - 09/12/07
 ************************************************/
    public class Lab05
   {
   /***********************************************
    * Main method-entry point into the program
    *
    * @param args - unused in this program
    ***********************************************/
       public static void main(String args [])
      {
      // declarations
         int first;
         int second;
         int third;
      
         final int JMU_BREAK = 15;
         float floater;
         double myDouble;
      
      // section 1
         first = 23;
         second = 0;
         third = 5;
      
         System.out.println("The first variable is: " + first);
         System.out.println("The second variable is: " + second);
         System.out.println("The third variable is: " + third);
      
      // section 2
         System.out.println("The break between JMU classes is: " + JMU_BREAK);
      
      // section 3
      //		floater = 4.6;  	// won't work.  Decimal literals are assumed double
      
         myDouble = 25.75468;
      
         floater = 4.6F; 	// this tells the system that 4.6 should be cast as a float
      
         floater = (float)4.6;	// this tells the system to cast 4.6 as a float
      
         floater = (float)myDouble;
      
      // NOTE:  You can cast values, you cannot cast containers
      
         System.out.println("The value in the floater variable is " + floater);
      
      // section 4
         first = JMU_BREAK + 10;
         second = third;
      
         System.out.println("The first variable is: " + first);
         System.out.println("The second variable is: " + second);
         System.out.println("The third variable is: " + third);
      
      // section 5
      // JMU_BREAK = 25;
      
         System.out.println("Thank you for playing...good-bye");
      }
   }