I have no idea what the last piece of code was :S Scrap it. Return to the code in the original post. You're problem lies on line 99 and 102 on the opriginal post. Why are you creating an array? Why are you assigning the third element a value?
What blackcoder said. Once you called a method, that method will be executed, and afterwards the execution will resume after the call. So basically, it's not like you would have to return to the main function, it's that it's impossible NOT to return to it (unless you force the program into an infinite loop or something like that O_O).
Put the whole content of the main function in a do while loop, it would look like this:
1 2 3 4 5
do
{
//Block of code
}
while (condition) // Boolean expression like in the If statement. If it's true, repeat the block.
With minor changes in your code you could achieve what you want.