Question: I want this code to increment the values assignId and assignSales by 1 and 5000 each loop, but start out at 111 and 25000. I can't just change the values though can I? here is the code:

```
package Salesperson;

public class DemoSalesperson2 
{

    public static void main(String[] args) 
    {
        int assignId = 111;
        double assignSales = 25000;
        Salesperson salesperson1 = new Salesperson(assignId, assignSales);
        Salesperson[] salesperson = new Salesperson[10];

        for(int i = 0; i < salesperson.length; i++)

            System.out.println("Salesperson " + i + " has ID #" + salesperson1.getId() + " and annual sales of $" + salesperson1.getSales());
            Salesperson salesperson2 = new Salesperson(assignId + 1, assignSales + 5000);
    }
}

```

Answer: 
I figured it out. I needed to initiate salesperson1 in the for loop and set the value as i, then it would add in the values as it went through the loop.

```
public static void main(String[] args) 
{
    final int SALES_INCREASE = 5000;
    int assignId = 111;
    double assignSales = 25000;
    Salesperson[] salespeople = new Salesperson[10];

    for(int i = 0; i < salespeople.length; i++)
    {
        salespeople[i] = new Salesperson(assignId, assignSales);
        assignId += 1;
        assignSales += SALES_INCREASE;
        System.out.println("Salesperson " + i + " has ID #" + salespeople[i].getId() + 
                " and annual sales of $" + salespeople[i].getSales());
    }
}

```
Your code may not be working right now because there are no braces around the body of the `for` loop, as @ElliottFrisch noted in his comment above.

Change

```
for(int i = 0; i < salesperson.length; i++)
    System.out.println("Salesperson " + i + " has ID #" + salesperson1.getId() + " and annual sales of $" + salesperson1.getSales());
    Salesperson salesperson2 = new Salesperson(assignId + 1, assignSales + 5000);

```

to

```
 for(int i = 0; i < salesperson.length; i++) {
        System.out.println("Salesperson " + i + " has ID #" + salesperson1.getId() + " and annual sales of $" + salesperson1.getSales());
        Salesperson salesperson2 = new Salesperson(assignId + 1, assignSales + 5000);
 }

```

Unless you include braces, the compiler will assume that only the very next statement (until the next `;`) is the body of the loop, and that everything else afterwards is *not* part of the loop.

So, in the example you provided, the code would print something every iteration but never increment the values until after it exited the loop.