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.
Java Stdin and Stdout II
Java Stdin and Stdout II
Sort by
recency
|
1138 Discussions
|
Please Login in order to post a comment
import java.io.; import java.util.;
public class Solution {
}
two time scan.nextline?? means why write two times..please explain anyone..
import java.util.*; class Solution { public static void main(String args[]) { Scanner in =new Scanner(System.in); int a=in.nextInt(); double b=in.nextDouble(); in.nextLine(); String c=in.nextLine(); System.out.println("String: "+c); System.out.println("Double: "+b+"\nInt: "+a); } }