File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Why isn't this program working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why isn Watch "Why isn New topic

Why isn't this program working

Adamz Preston

Joined: Jan 19, 2013
Posts: 29
Hi, to give you a brief description, this program is supposed to download all the welsh football clubs from this website: It does this by downloading the whole page and then parsing the information. It puts each team into an arraylist called WelshTeams and then prints it out using a for-each loop.

anyway you guys can probs figure the rest out by the code:

Steve Luke

Joined: Jan 28, 2003
Posts: 4181

What is the application doing wrong? Please TellTheDetails, we will be more capable of providing an answer if we know the problem.

Adamz Preston

Joined: Jan 19, 2013
Posts: 29
oh yh sorry the program isn't printing anything out onto the screen when it should be printing out the list of welsh football clubs
Terry Tucker

Joined: Jan 21, 2013
Posts: 24

for(int i = 0; i > array.length; i++){ //starts cycling through array

I am really new to Java, but the line above should be "< array.length", shouldn't it?

Terry Lee Tucker
Oracle Certified Associate
I agree. Here's the link:
subject: Why isn't this program working
It's not a secret anymore!