Is there any need 2 clear the buufer in Java in problems of codechef ?
Like the code in Java
import java.io.*;
import java.util.Scanner;
public class CodeChef {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
String str ;
str=sc.nextLine();
sc.nextLine(); // Is this Line Required ??? 'Flushing the Buffer'
long a;
a=sc.nextLong();
sc.nextLine(); // Is this Line Required ??? ' Flushing the Buffer'
double b;
b=sc.nextDouble();
System.out.println(ch);
}
}