Question: I am trying to increment an array of 5 in Java by 100 starting at 0(to get the output of: 0,100,200,300,400). For some reason my for loop will not add 100 and when I run the program, it just prints 0,0,0,0,0. Any help would be appreciated. 

```
public class Integers {

    void createIntegers(int[] arr) {
        for (int n = 0; n < arr.length; n += 100);
    }

    void printIntegers(int[] arr) {

        int index;

        for (index = 0; index < arr.length; index++) {
            System.out.println(arr[index]);
        }
    }

    public static void main(String[] args) {

        int[] arr = new int[5];

        Integers createIntegers = new Integers();
        createIntegers.createIntegers(arr);
        createIntegers.printIntegers(arr);

    }
}

```

Answer: 
The body of your for loop inside createIntegers() is empty, and therefore isn't doing anything, as well as the fact that it will only run once, as after it does, n will be 100, and 100 > 5. You need to use a separate variable to increment the list integers, and a separate variable to keep track of the iterations, like so:

```
n = 0
for (int i = 0; i < arr.length; i++) {
    arr[i] = n;
    n += 100;
}

```
Looks like you need to read up a bit on the basics, here's some sample code to help you achieve what your trying to do. Your code is not doing as expected since your for condition is just looping but not actually assigning anything. 

```
public class Test {

private static int[] myIntegers = new int[5];
private static int incrementor = 100;

public static void main(String args[]) {

    // Add values to the array
    for (int i = 0; i < myIntegers.length; i++) {
        myIntegers[i] = incrementor;
        incrementor += 100;
    }

    // Print out the array
    for (int i = 0; i < myIntegers.length; i++) {
        System.out.println(myIntegers[i]);
    }

}

}

```