package Oct2016; public class Ques1027 { public static void main(String[] args) { System.out.println(1%2==1?"奇數":"偶數"); System.out.println(2%2==1?"奇數":"偶數"); System.out.println(0%2==1?"奇數":"偶數"); System.out.println(-1%2==1?"奇數":"偶數"); System.out.println(-2%2==1?"奇數":"偶數"); } }
今日問題:
請問主程序輸出結果是?(點擊以下“【Java每日一題】20161027”查看20161026問題解析)
題目原發布於公眾號、簡書:【Java每日一題】20161027,【Java每日一題】20161027
每日一題最新將在公眾號發布,歡迎訂閱,交流進步