• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Making a Structure out of a class

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to make a structure out of a class.
Here is what I am doing

Then I am storing it in an user created object of html_db using the collection arrayList.

Basically whenever I try to retrieve any data like this:

All I get is blank entries.
filename:
urlname:
filename:
urlname:
filename:
urlname:
filename:
urlname:
filename:
urlname:
I don't know if maybe everytime a new Entry is created it is overwriting
the previous one even if it is already in the html_db.
Any help would be very much appreciated.
Thanks,
Nick Ueda
[ August 05, 2003: Message edited by: Nick Ueda ]
 
Ranch Hand
Posts: 38
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Nick,
I firstly wondered about the use of String Buffers everywhere, I'll have to try that later when I get time.. not sure if there maybe a problem with passing mutable objects around like that.. (I'm only thinking this as someone was talking about how you shouldn't use StringBuffer's in HashMaps the other day)
quick look at the code

don't you have to provide an index to these methods? pass in your iterator?
 
Nick Ueda
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I apologize, in my actual code there is an index i being supplied to the method, I was tired and accidentally left it out while typing.
Does anybody else have any other suggestions?
Thanks,
Nick Ueda
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic