SHARE
TWEET

pyramid 2

DulcetAirman Mar 17th, 2017 75 Never
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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top