Advertisement
Guest User

macsteps

a guest
Jul 28th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Solution {
  4.  
  5. public static void main(String[] args) {
  6. Scanner scan = new Scanner(System.in);
  7. int i = scan.nextInt();
  8. double d = scan.nextDouble();
  9. scan.nextLine();
  10. String s = scan.nextLine();
  11.  
  12. // Write your code here.
  13.  
  14. System.out.println("String: " + s);
  15. System.out.println("Double: " + d);
  16. System.out.println("Int: " + i);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement