Advertisement
shmeri

Untitled

Feb 20th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import java.util.Arrays;
  2.  
  3. public class Main {
  4. public static void main(String[] args) {
  5. String[] colorWhite = new String[10];
  6. String[] colorRed = new String[10];
  7. String[] colorGreen = new String[10];
  8. Arrays.fill(colorWhite, "\033[39m\u2588");
  9. Arrays.fill(colorRed, "\033[32m\u2588");
  10. Arrays.fill(colorGreen, "\033[31m\u2588");
  11. Arrays.stream(colorWhite).forEach(System.out::print);
  12. System.out.println();
  13. Arrays.stream(colorRed).forEach(System.out::print);
  14. System.out.println();
  15. Arrays.stream(colorGreen).forEach(System.out::print);
  16.  
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement