Question: My problem is that when I run the code the if statement is run but then the for-loop is bypassed. I am new to this and this is by first post. All help is welcome.

```
if (tMenuChoice == 1)
        {
            System.out.println("How many teams are there going to be?");
            int tNumberOfTeams = tKeyboard.nextInt();

            // This is where the code stops running. The for loop is not read but bypassed.

            for (int i = 1; i == tNumberOfTeams;i++)
            {
                System.out.println("Team " + i + "'s name?");
                String tNameOfTeam = tKeyboard.nextLine();
                String [] tTeamArray = new String[i]; 
            }
        }

```

Thanks

Answer: 
```
for (int i = 1; i == tNumberOfTeams;i++)

```

should be

```
for (int i = 0; i < tNumberOfTeams;i++)

```

The problems were that it would get false for the test condition on the first run and never do that iteration. Also, since you were writing to an array, you needed to start with 0.
The problem is in the condition statement of your for loop:
(int i = 1; i == tNumberOfTeams;i++)

You are first initializing the variable i to 1
Then you have the condition - The loop will only be executed if this condition evaluates to true. The condition is i == tNumberOfTeams. Unless the number of teams is equal to 1 (which is the value currently stored in i), the loop will not be executed at all. 

What you probably want to do is say i<=tNumberOfTeams, so that the loop will keep running as long as that statement is true.