SHARE
TWEET

pyramid

DulcetAirman Mar 17th, 2017 82 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. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top