Using IntStream to iterate and call a method

前端 未结 0 431
温柔的废话
温柔的废话 2020-12-21 05:59

How can I call a function to print a value while iterating over a range using IntStream?

public static void fizzBuzz(int n) {

    // The below does not work          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题