To return an array in Java, you can simply specify the array type as the return type of the method. Then, you can return the array using the return statement.
確定! 回上一頁