CS 101 Notes: 9/16/2010 Visit from the ITCC Web site: http://www.itcc.uic.edu/itcc/ Andrew's Email: awu5@uic.edu Getting the bookClasses to work with DrJava Overloading of Methods - when two or more methods exist with the same name. - the method that gets executed is the one that has its parameter list match the number and type of parameters in the method call. Loops - allows a section of code to do the same thing (or almost the same thing) over and over. Java has a number of looping statement while loop, for loop, do-while loop General form of a while loop ; while ( ) { ; ; } Example: a Loop that prints the values from 1 to 6 int loopCounter; loopCounter = 1; while ( loopCounter <= 6 ) { System.out.println (loopCounter); loopCounter = loopCounter + 1; } Relational Operators < less than > greater than <= less than or equal >= greater than or equal == equality != inequality A while loops executes the statements in the body while the condition is true.