There should not be any apace between IOException. it is name of theclass.Then change system to System.what is KeyBoard???