Skip to content
Merged

Dev #55

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/code/Bash/internet_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ $? -ne 0 ]; then
reboot
fi
else
FAILS=0
FAILS=0
fi

sleep 20
Expand Down
26 changes: 13 additions & 13 deletions public/code/Java/random_ints_to_file.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
import java.util.Random;

public class WriteToFile {
public static void main(String[] args) {
try {
PrintStream writer = new PrintStream( new File("randInts.txt"));
Random r = new Random();
final int LIMIT = 100;
public static void main(String[] args) {
try {
PrintStream writer = new PrintStream( new File("randInts.txt"));
Random r = new Random();
final int LIMIT = 100;

for(int i = 0; i < LIMIT; i++) {
writer.println( r.nextInt() );
for(int i = 0; i < LIMIT; i++) {
writer.println( r.nextInt() );
}
writer.close();
}
writer.close();
}
catch(IOException e) {
System.out.println("Error: write to file");
}
}
catch(IOException e) {
System.out.println("Error: write to file");
}
}
}