最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

閑來無事,寫著玩玩

2019-11-30 01:23 作者:kands-code  | 我要投稿

import java.util.*;

public class NjavaT01{
???? public static int Player(String player){
???????? switch (player){
???????????? case "Jeason":
???????????????? return 132457;
???????????? case "Steven":
???????????????? return 111222;
???????????? default:
???????????????? return -1;
???????? }
???? }
???? public static void main(String[] args) {
???????? Scanner sc = new Scanner(System.in);
???????? System.out.println("Please enter your player's name:");
???????? String name = sc.next();
???????? String GREETING = "Hello!";
???????? System.out.println("Please enter your password:");
???????? int password = sc.nextInt();
???????? int realcode = Player(name);
???????? if(realcode != -1){
???????????? if(password == Player(name)){
???????????????? System.out.println(GREETING + name);
???????????? }
???????????? else{
???????????????? System.out.println("The password is incorrect.Sorry!");
???????????? }
???????? }
???????? else{
???????????? System.out.println("Hey, please regisit on before you log in.");
???????? }
???? }
}


閑來無事,寫著玩玩的評論 (共 條)

分享到微博請遵守國家法律
米林县| 惠来县| 西城区| 广州市| 阜阳市| 沅陵县| 新丰县| 青阳县| 渑池县| 达拉特旗| 施甸县| 黄陵县| 碌曲县| 苏尼特右旗| 无棣县| 延吉市| 乌拉特前旗| 虞城县| 巨鹿县| 徐闻县| 巴中市| 临朐县| 闸北区| 新密市| 嘉峪关市| 新营市| 汉源县| 潢川县| 湘西| 沐川县| 芜湖市| 台南县| 泽库县| 崇阳县| 班戈县| 泰安市| 三台县| 屏南县| 台北县| 广昌县| 昭苏县|