-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSimple.java
More file actions
35 lines (29 loc) · 785 Bytes
/
Simple.java
File metadata and controls
35 lines (29 loc) · 785 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
package com.benizi.interop;
import java.util.Map;
public class Simple {
public Simple() {
this(3);
}
public Simple(int guesstimate) {
this.approximatePi = guesstimate;
}
public int approximatePi() { return 3; }
public int approximatePi;
public void giveYou(String first, String second) {
System.out.print("I'll give you ");
System.out.print(first);
System.out.print(" ");
System.out.println(second);
}
public void judgeCloseness(Map<String,Integer> testmap) {
for (String k : testmap.keySet()) {
System.out.print("[");
System.out.print(k);
System.out.print("]=");
System.out.println(Math.abs(approximatePi - testmap.get(k)));
}
}
public class Inner {
public static final int someValue = 42;
}
}