📅  最后修改于: 2022-03-11 14:48:21.831000             🧑  作者: Mango
ArrayList namesList = new ArrayList(Arrays.asList( "alex", "brian", "charles") );
namesList.forEach(name -> System.out.println(name));