I\'m brand new to java and I have a super n00bish question. (I do have some general programming knowledge). I\'m trying to access the variable \"item\" to no avail. Can some
The item variable is declared in the first do while loop
Hence you can access it inside the do while loop
To access the item in the scope of the function, you should declare it before the do while loop, so that it can be accessed in the if(item==1) statement