【初心者】Java質問・相談スレッド88【大歓迎】
■ このスレッドは過去ログ倉庫に格納されています
0618デフォルトの名無しさん
2006/08/12(土) 11:25:40class 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();
}
}
■ このスレッドは過去ログ倉庫に格納されています