How can I obtain a value from inside a for loop?
I declared the variable in the method and not inside the loop. When I use the same variable in an if statement in the same method however, I get a message saying that the variable has not been initialized. I want to use the value of the variable that has ibeen initialized inside the for loop in my if statement. I dont want to however, put the if statement inside the for loop.
Any suggestions?
Thanks!!!!!!!!
merrycit 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.