We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37db828 commit 24861e7Copy full SHA for 24861e7
src/main/java/com/lzw/solutions/codeforces/pjava_sample_c/Main.java
@@ -7,10 +7,10 @@
7
8
public class Main {
9
10
- BufferedReader in;
11
- PrintWriter out;
+ private BufferedReader in;
+ private PrintWriter out;
12
13
- Main() {
+ public Main() {
14
in = new BufferedReader(new InputStreamReader(System.in));
15
out = new PrintWriter(System.out);
16
}
@@ -21,12 +21,12 @@ public static void main(String[] args) throws IOException {
21
m.close();
22
23
24
- void close() {
+ private void close() {
25
out.flush();
26
out.close();
27
28
29
- void solve() throws IOException {
+ private void solve() throws IOException {
30
int t = Integer.parseInt(in.readLine());
31
while (t > 0) {
32
t--;
0 commit comments