Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class nauka{
- public static void main(String[] args){
- Scanner sk = new Scanner(System.in);
- String haslo,login;
- System.out.println("podaj login");
- login = sk.nextLine();
- System.out.println("podaj haslo");
- haslo = sk.nextLine();
- if((login=="ja") && (haslo=="kaa"))
- {
- System.out.println(" prawidłowe dane! ");
- }
- else if ((login!="ja") ||(haslo!="kaa"))
- {
- System.out.println("nieprawidłowe dane! ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement