all i want to do is to simply read in character input from the keyboard

i have been told to use some thing like

String MyString = "";

inputstream isr = new inputstream(system.in);
Bufferreader br = new bufferreader(isr);

system.out.print("please enter a number");

MyString= readline

Please help i understand this is only half of it and i know this code is very wrong, but i need to use programming lines simular to this else i will fail

Thank you

James