亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

JAVA編碼問題

JAVA編碼問題

qq_我姓李字鐔雨_03573295 2016-06-28 16:03:18
public static void main(String[] args) { System.out.println("請輸入你的分數:"); int name=new Scanner(System.in).nextInt(); System.out.println("請輸入你的性別:"); String sex1=new Scanner(System.in).next(); int score=name; String sex=sex1; if(score>80){ if(sex==("女")){ System.out.println("恭喜你從女子組脫穎而出,晉級決賽。"); }else{ System.out.println("你的性別不適合參加女子組。"); } }else{ System.out.println("很抱歉,你消失在茫茫人海中。"); }怎么在輸入成績第一部分時,分數不夠就直接System.out.println("很抱歉,你消失在茫茫人海中。");?
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 1463 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號