Results 1 to 7 of 7
Thread: Remove repeated code
- 10-26-2008, 01:15 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 3
- Rep Power
- 0
-
So ignore all the recommendations given to you at the Sun Java forums and cross post the same question here? That doesn't make a lot of sense.
- 10-26-2008, 01:23 PM #3
Member
- Join Date
- Oct 2008
- Posts
- 3
- Rep Power
- 0
Realistically, my post in the sun java forums was not as clear as it was here, but I couldn't change it. I was hoping for some cross referencing rather than some criticism, but if that's what you want to dish out, go ahead.
-
Please understand though that cross-posting can frustrate anyone who tries to help you only to find out later that the same answer was given hours ago in a cross-posted thread. No one likes wasting their time, especially a volunteer. The polite thing to do would be to provide links in both cross-posts to each other.
Also, you've been given an excellent suggestion to use a HashMap. What do you find wrong with this?
- 10-26-2008, 01:32 PM #5
Member
- Join Date
- Oct 2008
- Posts
- 3
- Rep Power
- 0
Sorry, I'm new to programming in general and was trying to get a number of different views, and I had already marked that one as "answered" a few hours ago, only to find out that I couldn't get it to work as I'd hoped.
I'm actually not quite sure how to use a hashmap. I'm learning outside of any teaching, and I'm mostly using my one book and online tutorials (as well as forums if I need to). I've looked up hashmaps on google but there examples are miles ahead of where I should be (I'll write this in the other forum too). If hashmaps are the only way to go about this, I'll just leave it as a group of if statements until I can get my head around hashmaps.
Thanks.
-
Are you coding this application in Swing?
- 10-26-2008, 02:28 PM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Similar Threads
-
how can we remove blank lines from a .txt
By Camden in forum New To JavaReplies: 12Last Post: 07-29-2011, 01:38 PM -
remove a portion from a file
By alon2580 in forum New To JavaReplies: 13Last Post: 08-25-2008, 01:45 PM -
Recursive Method ==> find how many times a value is repeated in an array
By NatNat in forum New To JavaReplies: 2Last Post: 02-16-2008, 08:52 PM -
how to remove an image icon
By cecily in forum Advanced JavaReplies: 1Last Post: 08-05-2007, 04:25 AM -
how to remove an old version of JDK
By tommy in forum New To JavaReplies: 2Last Post: 07-30-2007, 08:59 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks