You just need to write a method public static void findRob(){ for(int i = 1; i<=thread.length();i++){ for(int j = 1; j<=pageposts.length();j++){ Post a = j.getPost(); String name = a.getName(); if(name=="Rob10-- "){ System.out.println("Rob's post is on Page " + i + ", Post number " + j + "."); break; } else{ System.out.println("Rob did not make any posts on page " + i + "."); } } } }
lol this thread isnt just old but most ppl in first cuple of thousand posts are invalid troll lol lol