Created
August 29, 2015 05:16
-
-
Save ninjapanzer/8c1dd08c3fca35ace824 to your computer and use it in GitHub Desktop.
Animated Java Arrow
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
| public class Arrows { | |
| public static void main(String[] args) throws InterruptedException { | |
| while(true){ | |
| for(int i = 0; i < 50; i++){ | |
| String line = ""; | |
| for(int j = 0; j<i; j++){ | |
| line += "@@"; | |
| } | |
| for(int j = 0; j<50-i; j++){ | |
| line = " " + line; | |
| } | |
| System.out.println(line); | |
| Thread.sleep(20); | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment