diff --git a/public/code/Bash/internet_test.sh b/public/code/Bash/internet_test.sh index 98f304db1..77298f882 100644 --- a/public/code/Bash/internet_test.sh +++ b/public/code/Bash/internet_test.sh @@ -20,7 +20,7 @@ if [ $? -ne 0 ]; then reboot fi else - FAILS=0 + FAILS=0 fi sleep 20 diff --git a/public/code/Java/random_ints_to_file.java b/public/code/Java/random_ints_to_file.java index 2eed181f7..18ef1268e 100644 --- a/public/code/Java/random_ints_to_file.java +++ b/public/code/Java/random_ints_to_file.java @@ -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"); + } + } } \ No newline at end of file