Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Creating a Map

Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having some trouble creating a map for my program below. Below it is an example of what I'm referring to, but there we had an input instead of reading in a text file. How can apply it to what I'm trying to do here.

Posts: 69740
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whenever I see everything marked static I think there is something wrong? Why is everything marked static? If the answer is because it compiles like that, marking things static is the wrong approach.
You are trying to do too many things at once. You go on about maps, then text files. Create a Map or read from that text file. One or the other. Then try the other one. When you have got both working, you can put them together.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic