Skip to content

Instantly share code, notes, and snippets.

@swaaz
Last active September 6, 2019 07:15
Show Gist options
  • Save swaaz/bf92601fc6aa3950cb2bf5fd71707932 to your computer and use it in GitHub Desktop.
Save swaaz/bf92601fc6aa3950cb2bf5fd71707932 to your computer and use it in GitHub Desktop.
IC-project
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