package kernel.gaosi.com;
class Check{
public boolean validate(String s,String p){
if(s.equals("hyl") && p.equals("hyl")){
return true;
}
else
return false;
}
}
class Operate{
private String info[];
public Operate(String []info){
this.info = info;
}
public String log(){
Check chk = new Check();
this.isexit();
String s = info[0];
String p = info[1];
if(chk.validate(s, p)){
return "true";
}
else {
return "false";
}
}
public boolean isexit(){
if(info.length !=2){
return true;
}
else
return false;
}
}
public class LoginDemo01{
public static void main(String args[]){
String input[]={"hyl","hyl"};
StringBuffer buf = new StringBuffer();
Operate opr = new Operate(input);
System.out.println(opr.log());
}
};
class Check{
public boolean validate(String s,String p){
if(s.equals("hyl") && p.equals("hyl")){
return true;
}
else
return false;
}
}
class Operate{
private String info[];
public Operate(String []info){
this.info = info;
}
public String log(){
Check chk = new Check();
this.isexit();
String s = info[0];
String p = info[1];
if(chk.validate(s, p)){
return "true";
}
else {
return "false";
}
}
public boolean isexit(){
if(info.length !=2){
return true;
}
else
return false;
}
}
public class LoginDemo01{
public static void main(String args[]){
String input[]={"hyl","hyl"};
StringBuffer buf = new StringBuffer();
Operate opr = new Operate(input);
System.out.println(opr.log());
}
};