Last active
September 6, 2019 07:15
-
-
Save swaaz/bf92601fc6aa3950cb2bf5fd71707932 to your computer and use it in GitHub Desktop.
IC-project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
class login | |
{ | |
String us1 = "swaaz" ; | |
String pass1= "swaaz"; | |
} | |
public class input() | |
{ | |
scanner sc=new scanner(System.in); | |
String uss1=sc.nextLine(); | |
String passs1=sc.nextLine(): | |
} | |
public class Main { | |
public static void main(String[] args) { | |
login l1=new login(); | |
input i1=new input(); | |
if(l1.us1==i1.uss1 && l1.pass1==i1.passs1 ) System.out.println("Successfully logged in"); | |
else System.out.println("Wrong username or password"); | |
// write your code here | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment