Skip to content

Instantly share code, notes, and snippets.

@swoogles
Created February 28, 2014 18:50
Show Gist options
  • Save swoogles/9277222 to your computer and use it in GitHub Desktop.
Save swoogles/9277222 to your computer and use it in GitHub Desktop.
public class TrackedFile
{
public static void main(String[] args)
{
go();
}
// Is this function stupid?
public static go()
{
File file = new File("randInts.txt");
Random r = new Random();
final int LIMIT = 100;
for(int i = 0; i < LIMIT; i++)
{
file.println( r.nextInt() );
}
file.close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment