From f64ce2963f5fd9698bd1b1232d175ee11e2956ce Mon Sep 17 00:00:00 2001 From: Bot Date: Sun, 3 Jan 2021 21:00:36 +0100 Subject: [PATCH 1/2] fix indentation and trailing spaces --- public/code/Java/random_ints_to_file.java | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) 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 From 2ba9eaad8e89ca3dc3ddff06ddc65bb6617cb89b Mon Sep 17 00:00:00 2001 From: Bot Date: Sun, 3 Jan 2021 21:08:34 +0100 Subject: [PATCH 2/2] remove trailing spaces from code examples --- public/code/Bash/internet_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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