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.