Advertisement
Paindustry

Java Scanner

Oct 27th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. package blablabla;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Inputan_user {
  6. public static void main (String[] args) {
  7. int user;
  8. System.out.print("Masukkan password Anda: ");
  9. Scanner inputan=new Scanner(System.in);
  10. user= inputan.nextInt();
  11.  
  12. System.out.println("Password anda yang anda masukkan adalah: "+user);
  13. }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement