Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.stream.IntStream;
- class SomeClass {
- public static void main(final String[] args) {
- IntStream.range(1, 6).mapToObj(char[]::new).map(String::new)
- .map(s -> s.replace('\0', '*')).forEach(System.out::println);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement