Advertisement
Guest User

Untitled

a guest
Mar 6th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. package sample4;
  2.  
  3. public class kullanicilar {
  4.  
  5. String username="Nahit";
  6. int password=1234;
  7.  
  8. void kontrol(String username, int password)
  9. {
  10. if(username.equals(this.username) && password==this.password)
  11. {
  12. System.out.println("Giriş başarılı");
  13. }
  14. else
  15. {
  16. System.out.println("Kullanıcı adı veya şifre hatalı");
  17. }
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement