not yet...zzzzzzz
Type: Posts; User: jeremanalaotao
not yet...zzzzzzz
i want to exit that at 0 hehe
int [ ] arr = new int[ 10 ];
for(int i =8; i < arr.length; i--){
arr[ i ] = i - 1;
System.out.println(arr[ i ]);
this is my code for decrement..but it says "Exception in...
i did it on purpose..when i use -- it says outofbounds
int [ ] arr = new int[ 4 ]
for(int i = 0; i < arr.length; i++)
arr[ i ] = i + 1
System.out.println(arr[ i ]++)