摘要:
public class Main { static void myMethod() { System.out.println("I just got executed!"); } public static void main(String[] args) { myMethod(); } } // 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文