We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int i = scan.nextInt();
double d=scan.nextDouble();
scan.nextLine();//ye next isliya dee h kyuki ye integer value le rahe tha isko khtm karne ke liya next
line dee h
Java Stdin and Stdout II
You are viewing a single comment's thread. Return to all comments →
import java.util.Scanner;
public class Solution {
String s=scan.nextLine();
}