錯誤在哪? 求高手
public?class?HelloWorld?{ ????public?static?void?main(String[]?args)?{ int?score?=?94; String?sex?=?"女"; ????????if?(score?>?80){ ????????????if(?sex.equals??("女")){ ????????????????System.out.println("進入女子組"); ????????????}else?{ ????????????????System.out.println("進入男子組"); ????????????} ????????}?else?{ ????????????System.out.println("進入男子組"); ????????????} } } 錯誤在哪????求高手
2015-07-31
非常感謝,我的語法沒什么錯誤吧
2015-07-31
這3行代碼最后的分號都錯了,改成英文分號即可。
參考代碼