wood burning stoves
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 Elasticsearch in Action this week in the Big Data 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: http://en.wikipedia.org/wiki/List_of_football_clubs_in_Wales. 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: 22

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?
I agree. Here's the link: http://aspose.com/file-tools
subject: Why isn't this program working