Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why isn Watch "Why isn New topic
Author

Why isn't this program working

Adamz Preston
Greenhorn

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
Bartender

Joined: Jan 28, 2003
Posts: 4164
    
  21

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


Steve
Adamz Preston
Greenhorn

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
Greenhorn

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
 
Similar Threads
Problem getting html of a WebPage
Searching a FileInputStream
Searching a FileInputStream
Gettting Error!!
Help need for client server program