課程
/后端開發
/Java
/Java入門第一季(IDEA工具)升級版
編程題4-1答案
2016-10-08
源自:Java入門第一季(IDEA工具)升級版 4-1
正在回答
public class HekloWord { ??? public static void main ( String?????? [] args ) { ??????? int one = 20; ??????? int newOne = one%2; ??????? if ( newOne == 0) { ????????? System.out.println( "one是偶數" ) ??????? } ??? } }
public?class?HelloWorld?{ ????public?static?void?main(String[]?args)?{ ????????int?one?=?20?; ???? ????????if?(one?%?2?==?0) ????????????System.out.println("one是偶數"); ???????????? ????} }
one是偶數
你的問題是什么?
LVSIYANG 提問者
ziom 回復 LVSIYANG 提問者
LVSIYANG 提問者 回復 ziom
舉報
0基礎萌新入門第一課,從Java環境搭建、工具使用、基礎語法開始
3 回答Java條件語句之多重 if
1 回答Java條件語句之嵌套 if
1 回答Java條件語句
4 回答條件語句if...else
3 回答條件語句-多重if
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-10-08
public class HekloWord {
??? public static void main ( String?????? [] args ) {
??????? int one = 20;
??????? int newOne = one%2;
??????? if ( newOne == 0) {
????????? System.out.println( "one是偶數" )
??????? }
??? }
}
2016-10-08
2016-10-08
one是偶數
2016-10-08
你的問題是什么?