[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Java

You are currently reading a thread in /g/ - Technology

Thread replies: 9
Thread images: 1
File: column values.png (11 KB, 1325x534) Image search: [Google]
column values.png
11 KB, 1325x534
Getting java.lang.ArrayIndexOutOfBoundsException: 3
on this method, anyone know why?
>>
>>53911017
Have you tried using the loo
>>
t[i+1]
>>
>>53911053
Yeah thought that might be it, im trying to make sure the first value in each sub array is increasing, then the 2nd etc.
>>
what is this function supposed to do?

either way, change 'i < t[i].length - 1' to 'j < t[i].length - 1'
>>
>>53911224
Yeah cheers, just spotted that now too haha. Its supposed to determine whether each corresponding value in each subarray is increasing.
for example if i list an array of arrays, the values should be increasing vertically:
1 2 3
2 3 4
5 6 7
>>
>>53911017
Pahjeet....
>>
So make a variable and compare it to the next entry but leave a condition that the variable be checked for vertical increments.
>>
>>53913442
oh wait nevermind you set it to length -1
Thread replies: 9
Thread images: 1

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK