import java.util.*; public class CoreFrameworkExample { public static void main(String[] args) { List<String> list = new ArrayList<>(); list.add("Hello"); list.add("World"); try { int[] array = new int[5]; } catch (ArrayIndexOutOfBoundsException e) { } Scanner scanner = new Scanner(System.in); String name = scanner.nextLine(); Thread thread = new Thread(() -> { for (int i = 0; i < 5; i++) { } }); thread.start(); try { Class<?> cls = Class.forName("java.util.ArrayList"); } catch (ClassNotFoundException e) { e.printStackTrace(); } } }


上一篇:
下一篇:
切换中文