Skip to content

Commit 24861e7

Browse files
committed
refactor(Main): make fields and methods private
1 parent 37db828 commit 24861e7

File tree

1 file changed

+5
-5
lines changed
  • src/main/java/com/lzw/solutions/codeforces/pjava_sample_c

1 file changed

+5
-5
lines changed

src/main/java/com/lzw/solutions/codeforces/pjava_sample_c/Main.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
public class Main {
99

10-
BufferedReader in;
11-
PrintWriter out;
10+
private BufferedReader in;
11+
private PrintWriter out;
1212

13-
Main() {
13+
public Main() {
1414
in = new BufferedReader(new InputStreamReader(System.in));
1515
out = new PrintWriter(System.out);
1616
}
@@ -21,12 +21,12 @@ public static void main(String[] args) throws IOException {
2121
m.close();
2222
}
2323

24-
void close() {
24+
private void close() {
2525
out.flush();
2626
out.close();
2727
}
2828

29-
void solve() throws IOException {
29+
private void solve() throws IOException {
3030
int t = Integer.parseInt(in.readLine());
3131
while (t > 0) {
3232
t--;

0 commit comments

Comments
 (0)