>>612 別クラスにするとかどうか
class Abc2{
String str[] = new String[2];
int i[] = new int[2];
double d;
BufferedReader input;

public Abc2(InputStream is){
input = new BufferedReader(new InputStreamReader(is));
}
public void mathfoo() throws IOException {
str[0] = input.readLine();
i[0] = Integer.parseInt(str[0]);
}
}

public class Abc{
public static void main(String[] args) throws IOException {
Abc2 abc2 = new Abc2(System.in);
abc2.mathfoo();
}
}