Created
January 8, 2015 12:04
-
-
Save codebucketdev/23fcab3a3996e604454c to your computer and use it in GitHub Desktop.
Just for Fun :D
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.anonymous; | |
| import java.util.Random; | |
| public class Matrix | |
| { | |
| public static final char[] CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".toCharArray(); | |
| public static void main(String[] args) throws InterruptedException | |
| { | |
| Random random = new Random(System.currentTimeMillis()); | |
| while(1 > 0) | |
| { | |
| String line = ""; | |
| for(int x = 0; x < 5; x++) | |
| { | |
| StringBuilder builder = new StringBuilder(12); | |
| for(int i = 0; i < builder.capacity(); i++) | |
| { | |
| builder.append(CHARS[random.nextInt(CHARS.length)]); | |
| } | |
| line += builder.toString() + " "; | |
| } | |
| Thread.sleep(5L); | |
| System.out.println(line); | |
| } | |
| } | |
| @Deprecated | |
| public static class AnsiColor | |
| { | |
| public static final String RESET = "\u001B[0m"; | |
| public static final String BLACK = "\u001B[30m"; | |
| public static final String RED = "\u001B[31m"; | |
| public static final String GREEN = "\u001B[32m"; | |
| public static final String YELLOW = "\u001B[33m"; | |
| public static final String BLUE = "\u001B[34m"; | |
| public static final String PURPLE = "\u001B[35m"; | |
| public static final String CYAN = "\u001B[36m"; | |
| public static final String WHITE = "\u001B[37m"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment