Created
April 1, 2015 07:13
-
-
Save aerodame/508ca4b18bada9500bbf to your computer and use it in GitHub Desktop.
CSS430 : Program 1 - PingPong Infinite
This file contains 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 PingPong extends Thread { | |
private String word; | |
private int loop; | |
public PingPong( String[] args ) { | |
word = args[0]; | |
loop = Integer.parseInt( args[1] ); | |
} | |
public void run( ) { | |
for ( int j = 0; j < 100; j++ ) { | |
SysLib.cout( word + " " ); | |
for (int i = 0; i < loop; i++ ); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment