-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHomeParty.java
More file actions
28 lines (21 loc) · 794 Bytes
/
HomeParty.java
File metadata and controls
28 lines (21 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package Notes;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class HomeParty {
public static void main(String[] args) throws IOException {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String[] dimensions = bf.readLine().split(" ");
int R = Integer.parseInt(dimensions[0]);
int C = Integer.parseInt(dimensions[1]);
char[][] apartment = new char[R][C];
for (int i = 0; i < R; i++) {
String line = bf.readLine();
for (int j = 0; j < C; j++) {
apartment[i][j] = line.charAt(j);
}
}
String input_string = bf.readLine();
int input_integer = Integer.parseInt(bf.readLine());
}
}