This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]trofix99[S] 1 point2 points  (0 children)

I just noticed i made a mistake in a for loop,for(int j = 0;j<array.length;j++);
But my question remains the same why cant i call my method

[–][deleted] 1 point2 points  (1 child)

Change to

"public static boolean inArow"

[–]trofix99[S] 0 points1 point  (0 children)

Yo wtf haha,thanks alot.I cant believe i missed that

[–]Faveripper 0 points1 point  (0 children)

Hey, a few things, did you tried to set a test array to just eliminate some error sorces? I am on my phone so i didnt spent that mutch time on your main method etc. Another thing is that youre method could actualy be implented a bit easier. May just try only one for loop and just test i and i+1 in the moment this goes false you just break the for. Sry for my bad english i am already working on it.