package javaapplication14; 导入java.util.Scanner;
公共类JavaApplication14 {
public static void main(String[] args) {
Scanner obj=new Scanner(System.in);
String name ;
System.out.println("enter your name please ?");
name=obj.next();
if(name == "khan")
{
System.out.println("Authorised person");
}
}}