Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why isn't this program working

 
Adamz Preston
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the application doing wrong? Please TellTheDetails, we will be more capable of providing an answer if we know the problem.
 
Adamz Preston
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
Linux Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic