Skip to content

Commit f64ce29

Browse files
author
Bot
committed
fix indentation and trailing spaces
1 parent 0ba2cb1 commit f64ce29

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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)