In Java 8+, you can use the Stream API to convert an array to a list as shown below: int[] years = {2015, 2016, 2017, 2018, 2019, ...
確定! 回上一頁