DulcetAirman

pyramid 2

Mar 17th, 2017
606
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import static java.lang.System.out;
  2.  
  3. import java.util.stream.IntStream;
  4. class SomeClass {
  5.   public static void main(final String[] args) {
  6.     IntStream.range(1, Integer.parseInt(args[0])).forEach(
  7.         i -> {
  8.           IntStream.range(0, i).forEach(x -> out.print('*'));
  9.           out.println();
  10.         });
  11.   }
  12. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment