   import java.util.Scanner;

/*************************************************************** 
 * A class to demonstrate variable and constant declarations.
 * Note the javadoc format and required elements  
 * Not intended to do anything
 *
 * @author Nancy Harris
 * @version 01/12/2009
 ***************************************************************/
    public class Variable
   {
   /*********************************************************** 
    * A function to demonstrate local declarations
    * @param abc Command line arguments unused in this application
    ***********************************************************/
       public static void main (String [] abc)
      {
         final double INTEREST_RATE = .05;
      
         double principal;
         double paymentAmount;
         int count = 0;
         boolean flag;
         char letter;
         
         String message;
         Double myNumber;		// what's this - special name for classes that represent primitive types
         Scanner kb = new Scanner(System.in);
      
         myNumber = 6.7;
             
      // which of the following are legal assignments?  Why?
      // INTEREST_RATE = .0485;
      
      // principal = 15000;
      // paymentAmount = 200.00;
       
      //	principal = 15878987852.22546;
      // paymentAmount = (INTEREST_RATE * principal) + 50;
      
         count = 15;
      // count += 15.5;
      
         count = (int) 15;		
      //	count = principal;
      // count = (int) principal;
      
         letter = 'a';
         letter = '1';
      // 	letter = 1;
      //		letter = 1.5;
      
         flag = true;
      // flag = 0;
      // flag = paymentAmount < 100;
      
         message = "this is a test";
         message = "";
      //message = 5;
         message = "" + 5;
         message = "" + 5 + 5 + "a";
      
         count = Integer.parseInt(message);
      
      
      
      }
   }
