PROGRAMMING METHODS

 

/**

* This is one cool program.

*

* @author Mr. Merlis

* @version 1.0

*/

 

 

Public class Hello

{

          /**

          * This is one cool method.

          */

          public void coolMethod(int param)

          {

                   int nLoops = 10;

         

for(int i = 0; i < nLoops; i++)

{

                             // insert code here

}

          }

 

 

          /**

          *This is one uncool method.

          */

 

          public void unCoolMethod(int nuttin)

          {

                   int sumtin;

                   for(int i = 0; i<5; i++)

                   {

                             for(int j = 0; j<6; j++)

                             {

                                      // I’m inside of two for loops!

                             }

                   }

          }

 

} // brace that ends the class