```
int[] test = {0,1,2,3,4,5};
    int[] before = test;
    System.out.println(before[2]);
    test[2] = 65;
    System.out.println(before[2]);

```

The first System.out prints **2** and it should, but the second prints **65**. I have been programming for over a year in this language and as far as I know this is NOT suppose to happen! Any help?

```
    int first = 9;
    int second = first;
    System.out.println(second);
    first = 10;
    System.out.println(second);

```

The code above prints **9** on both lines.