エレベータっぽいアプリを作ってみようと思っています。
今ボタンを押されたときの処理を作っているのですが、
mainメソッドのbuttonControl.button();の部分でIOExceptionが出てうまくいきません。
IOExceptionについて調べたのですが解決できず・・・・どなたか教えてください。

import java.io.*;
class ButtonControl {
void button()
{
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
System.out.println("エレベータへようこそ!行きたいフロアのボタンを押してください。");
String charfloor = br.readLine();
int floor =Integer.parseInt(charfloor);
System.out.println("あなたは" + floor + "階に行くボタンを押しました");
}

public static void main(String[] args)
{
  ButtonControl buttonControl = new ButtonControl();
  buttonControl.button();
}

}