You are viewing a single comment's thread. Return to all comments →
public static void main(String[] args) { Scanner sc=new Scanner(System.in);
int x=sc.nextInt(); double y =sc.nextDouble(); String e= sc.nextLine(); String s=sc.nextLine(); System.out.println("String: "+s); System.out.println("Double: "+y); System.out.println("Int: "+x);
}
Seems like cookies are disabled on this browser, please enable them to open this website
Java Stdin and Stdout II
You are viewing a single comment's thread. Return to all comments →
public static void main(String[] args) { Scanner sc=new Scanner(System.in);
}