Skip to content

Commit 343a1a1

Browse files
authored
Merge pull request #55 from encap/dev
Dev
2 parents ab32f50 + 2ba9eaa commit 343a1a1

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

public/code/Bash/internet_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ $? -ne 0 ]; then
2020
reboot
2121
fi
2222
else
23-
FAILS=0
23+
FAILS=0
2424
fi
2525

2626
sleep 20

public/code/Java/random_ints_to_file.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
import java.util.Random;
66

77
public class WriteToFile {
8-
public static void main(String[] args) {
9-
try {
10-
PrintStream writer = new PrintStream( new File("randInts.txt"));
11-
Random r = new Random();
12-
final int LIMIT = 100;
8+
public static void main(String[] args) {
9+
try {
10+
PrintStream writer = new PrintStream( new File("randInts.txt"));
11+
Random r = new Random();
12+
final int LIMIT = 100;
1313

14-
for(int i = 0; i < LIMIT; i++) {
15-
writer.println( r.nextInt() );
14+
for(int i = 0; i < LIMIT; i++) {
15+
writer.println( r.nextInt() );
16+
}
17+
writer.close();
1618
}
17-
writer.close();
18-
}
19-
catch(IOException e) {
20-
System.out.println("Error: write to file");
21-
}
22-
}
19+
catch(IOException e) {
20+
System.out.println("Error: write to file");
21+
}
22+
}
2323
}

0 commit comments

Comments
 (0)