在Java中定义数组的方法有两种:
int[] numbers = {1, 2, 3, 4, 5}; String[] names = {"Alice", "Bob", "Charlie"};
int[] numbers = new int[5]; String[] names = new String[3];