You should learn to use the debugger as soon as possible. Rather than guessing what your code is doing, It is time to see your code executing and ensuring that it does what you expect.
The debugger allow you to follow the execution line by line, inspect variables and you will see that there is a point where it stop doing what you expect.
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[
^]
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html[
^]
https://www.jetbrains.com/idea/help/debugging-your-first-java-application.html[
^]
In your case, there is no difference, both declaration are exactly the same.
Use the debugger to see what the code is doing.
Your program have a bug:
I is an array of size 15 which is from
i[0]
to
i[14]
but your progran write in
i[15]
which write in another variable, which one is compiler dependent.