/**  * Class for creating a template for a simple Java program  *   
   * @author Pat Troy: troy AT uic DOT edu  */
   // Note the name of the class in the following line MUST 
   // match the name of the file.  This is stored in a file 
   // named: Template.java
   {      
      public static void main (String[] args)    
       {     
         System.out.println("Begin Java Exection");     
         System.out.println("Adham Hammad");     
         System.out.println("ahamma4");
         System.out.println("CS 101");
         System.out.println("Friday at 11");
 
         // put your Java Program here     
         int numMan, numWives;        //declaring variables; 
         numMan = 1;                       // determining the number of men  
         numWives = numMan * 7;     // determining the number of wives
    
         System.out.print ("The value in num1 is: ");     
         System.out.println(num1);          
         System.out.println ("The value in num2 is: " + num2);          
         System.out.println ("The value in num3 is: " + num3);      
         System.out.println("The number of wives are: " + numWives);     
         System.out.println("End Java Exection");   
       } 
   }  // end of Template class
Edit | Attach | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2012-01-23 - 17:34:58 - Main.ahamma4
 
Copyright 2016 The Board of Trustees
of the University of Illinois.webmaster@cs.uic.edu
WISEST
Helping Women Faculty Advance
Funded by NSF