📜  如何使用流循环遍历 java 中的对象 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:21.831000             🧑  作者: Mango

代码示例1
ArrayList namesList = new ArrayList(Arrays.asList( "alex", "brian", "charles") );
         
namesList.forEach(name -> System.out.println(name));