-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.java
More file actions
36 lines (29 loc) · 790 Bytes
/
example.java
File metadata and controls
36 lines (29 loc) · 790 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
29
30
31
32
33
34
35
36
import java.io.InputStreamReader;
import java.util.Scanner;
public class Main {
static class Person {
public char gender;
public int age;
public float height;
public Boolean isGay;
public Person[] relatives;
}
static Scanner _reader = new Scanner(new InputStreamReader(System.in));
public static int read() {
return Integer.valueOf(_reader.nextLine());
}
public static void main(String args[]) {
main();
}
static Object[] bar() {
return new Object[]{0, 0.0f, 'a'};
}
static Object[] foo(int a, float b, char c, boolean d, Person[] e) {
return new Object[]{0};
}
static void main() {
Person b;
b = new Person();
System.out.print(b);
}
}