Advertisement
KirilZdravkov

Flag

Feb 20th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. import java.util.Arrays;
  2.  
  3. public class Flag
  4. {
  5.   public static void main(String[] args)
  6.   {
  7.     char[] printStuff = new char[10];
  8.  
  9.     Arrays.fill(printStuff, '*');
  10.     System.out.println(printStuff);
  11.  
  12.     Arrays.fill(printStuff, '+');
  13.     System.out.println(printStuff);
  14.  
  15.     Arrays.fill(printStuff, '-');
  16.     System.out.println(printStuff);
  17.  
  18.     Arrays.fill(printStuff, '\u2588');
  19.     System.out.print("\033[39m");
  20.     System.out.println(printStuff);
  21.  
  22.     System.out.print("\033[32m");
  23.     System.out.println(printStuff);
  24.  
  25.     System.out.print("\033[31m");
  26.     System.out.println(printStuff);
  27.   }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement