码迷,mamicode.com
首页 > 其他好文 > 详细

简单登录系统

时间:2016-05-23 22:52:54      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:登录系统   public   

public class Demo8

{

public static void main(String[] args){

if(args.length !=2){

System.out.println("输入的参数不正确,系统退出!");

System.out.println("格式:Java LoginDemo8 用户密码错误");

System.exit(1);

}

String name=args[0];

String password=args[1];

if(name.equals("涂思明")&&password.equals("750132116")){

System.out.println("欢迎"+name+"光临!");

}else{

System.out.println("错误的用户和密码!");

}

}

}

主要引用到D.equals()   String []str

简单登录系统

标签:登录系统   public   

原文地址:http://11588233.blog.51cto.com/11578233/1782257

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!