int i;

try // in the main block
{
i = 0;
this.i = i;
}
catch (IOException){}


ERROR: undefined variable: this

how do i make a variable in a try block available to other methods in the class?

as a matter of fact, how to i make things, such as arrays, declared in a try block available outside?