• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why isn't this program working

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 24
Postgres Database VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic