Results 1 to 3 of 3
Thread: Increment a Variable
- 03-19-2008, 10:02 PM #1
Member
- Join Date
- Jan 2008
- Posts
- 12
- Rep Power
- 0
Increment a Variable
Simple question,
I have 4 variables child1, child2, child3, child4. I want to intialize the variables in a loop as such:
There will not always be a child to fill every spot which is the reason I am doing it this way. Thanks in advanceJava Code:while(temp.getPointer() != null){ temp = temp.getPointer(); child+i = temp;
- 03-21-2008, 05:15 AM #2
use array !!
dont worry newbie, we got you covered.
- 06-14-2008, 02:57 AM #3
Member
- Join Date
- Jun 2008
- Posts
- 22
- Rep Power
- 0
Similar Threads
-
Object ArrayList - increment solution needed badly!!
By rugbyGeek in forum New To JavaReplies: 4Last Post: 03-08-2008, 12:47 AM -
getting the value of variable
By Lehane_9 in forum New To JavaReplies: 2Last Post: 03-05-2008, 01:42 AM -
Getting variable value from a variable name
By Java Tip in forum Java TipReplies: 0Last Post: 02-16-2008, 09:26 PM -
How to create auto-increment
By Albert in forum JDBCReplies: 2Last Post: 07-04-2007, 05:23 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks