
package com.itheima; import java.util.Scanner; /* * 需求:鍵盤錄入一個月份,輸出該月份對應的...
ackage com.itheima_01; /* * 方法:其實就是完成特定功能的代碼塊 * * 定義格式: * 修飾符 返回值類型 方法...
ackage com.itheima_04;/* * 數組獲取最值(獲取數組中的最大值最小值) */public class ArrayTest...
package com.itheima_01; /* * 定義兩個數組,先定義一個數組,賦值,輸出。然后定義第二個數組的時候把第一個數組的地址賦...
ackage com.itheima_01; /* * 數組:存儲同一種數據類型的多個元素的容器。 * * 定義格式: * A:數據類型[]...
package com.itheima; import java.util.Random; /* * Random:用于產生隨機數 * * 使用...
package com.itheima_07; /* * continue:繼續的意思 * 使用場景: * 循環中 * 注意: * 離開...
package com.itheima_06; /* * do...while循環的基本格式: * do { * 循環體語句; * ...
ackage com.itheima_05; /* * while循環語句的基本格式: * while(判斷條件語句) { * 循環體...