aspose file tools*
The moose likes Java in General and the fly likes looping though and change the int value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "looping though and change the int value" Watch "looping though and change the int value" New topic
Author

looping though and change the int value

ben riches
Ranch Hand

Joined: Nov 08, 2002
Posts: 126
Hello everyone i have this little snipplet of code, and i wondered if there is a way that i can loop though this code, and every time i loop though it change the int num value?
thanks
ben
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
The short answer is "yes you can change it." But somehow I don't think that's what you are looking for. However, your question isn't complete enough to give any more of an answer. How exactly do you want to change it? Perhaps you need to post more of your code so we can get a better picture of the context of this snippet.
Keep coding!
Layne


Java API Documentation
The Java Tutorial
ben riches
Ranch Hand

Joined: Nov 08, 2002
Posts: 126
Hello i want to change the int vaule to the next that value that is in the hashtable hhh
is this possible?
ben
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Since you are using integers for the key of each value, a Vector would be much easier to use than a Hashtable. Is there any reason you are using a Hashtable?
 
Don't get me started about those stupid light bulbs.
 
subject: looping though and change the int value