摘要:
public class Main { static void myMethod() { System.out.println("I just got executed!"); } public static void main(String[] args) { myMethod(); } } // 阅读全文
posted @ 2022-11-25 02:58
小白冲冲
阅读(31)
评论(0)
推荐(0)
摘要:
An array of strings String[] cars = {"Volvo", "BMW", "Ford", "Mazda"}; An array of integers int[] myNum = {10, 20, 30, 40}; Change an Array Element St 阅读全文
posted @ 2022-11-25 02:39
小白冲冲
阅读(33)
评论(0)
推荐(0)
摘要:
Break: the "break" stops the loop for (int i = 0; i < 10; i++) { if (i == 1) { break; } System.out.println(i); } // Outputs 0 Continue: The continue s 阅读全文
posted @ 2022-11-25 02:26
小白冲冲
阅读(20)
评论(0)
推荐(0)

浙公网安备 33010602011771号