This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| This program demonstrates the for loop. | |
| */ | |
| public class Squares | |
| { | |
| public static void main(String [] args) | |
| { | |
| int number; // Loop control variable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.swing.JOptionPane; | |
| /** | |
| This program calculates the number of soccer teams | |
| that a youth league may create from the number of | |
| available players. Input validation is demonstrated | |
| with while loops. | |
| */ | |
| public class SoccerTeams |
NewerOlder