Advertisement
DulcetAirman

pyramid

Mar 17th, 2017
136
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.stream.IntStream;
  2.  
  3. class SomeClass {
  4.   public static void main(final String[] args) {
  5.     IntStream.range(1, 6).mapToObj(char[]::new).map(String::new)
  6.     .map(s -> s.replace('\0', '*')).forEach(System.out::println);
  7.   }
  8. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement