How to get the first element of an ArrayList in Java. java1min read ... asList(10, 20, 30, 40); System.out.println(list.get(0)); } }. Output:.
確定! 回上一頁