I read somewhere using bufferedReader is much faster than reading an input using a scanner. This would be beneficial when completing coding problems such as the ones available on DMOJ (which have time constraints). How would I read the input of int's and strings using a bufferedReader instead?
My current method:
Scanner input = new Scanner (System.in); //initializing scanner
String ____ = input.nextLine(); //reading a string input
int ____ = input.nextInt(); //reading an int input