While reading from the buffer , eg.
`Scanner scan = new Scanner(System.in);
int variable = scan.nextInt();
double varDouble = scan.nextDouble();
String s = scan.nextLine();
// if this string has been entered just after an integer is entered, it
//just shows empty output , might be a buffer clearing or something .
` how the input is stored in the buffer ? how can the input buffer be cleared and what is the need?