Skip to content

Instantly share code, notes, and snippets.

@ninjapanzer
Created August 29, 2015 05:16
Show Gist options
  • Select an option

  • Save ninjapanzer/8c1dd08c3fca35ace824 to your computer and use it in GitHub Desktop.

Select an option

Save ninjapanzer/8c1dd08c3fca35ace824 to your computer and use it in GitHub Desktop.
Animated Java Arrow
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