I have one entry per console that has two separate integers but in a single line, that is, if the input is "2 4" I have to store in one variable the 2 and in another the 4. (These as int type ). For this I must use the BufferedReader library, I tried this but it does not compile me.
int n,m;
n = Integer.parseInt(sc.readLine());
m = Integer.parseInt(sc.readLine());
Thank you.