Advertisement
Flaron

ProgMasters 01 - Stdin and Stdout

Jun 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import java.util.*;
  2. import java.util.Scanner;
  3.  
  4. public class Main {
  5. public static void main(String[] args) {
  6. Scanner scan = new Scanner(System.in);
  7. String szoveg= scan.nextLine();
  8. int szam= scan.nextInt();
  9. Double tort= scan.nextDouble();
  10.  
  11. System.out.println("String: " + szoveg);
  12. System.out.println("Double: " + tort);
  13. System.out.println("Int: " + szam);
  14.  
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement