Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sample4;
- public class kullanicilar {
- String username="Nahit";
- int password=1234;
- void kontrol(String username, int password)
- {
- if(username.equals(this.username) && password==this.password)
- {
- System.out.println("Giriş başarılı");
- }
- else
- {
- System.out.println("Kullanıcı adı veya şifre hatalı");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement