扫码下载编程狮APP
import java.util.stream.Streams; public class Main { public static void main(String[] args) { Streams.iterate(1, number -> number + 1) .map(number -> number * number) .limit(25) .forEach(number -> System.out.print(number + " ")); } }
联系方式:
扫描二维码
下载编程狮App
扫码关注 领资料包