diff options
Diffstat (limited to 'works/life/java-practice/javatest/src/javatest/E0201.java')
-rw-r--r-- | works/life/java-practice/javatest/src/javatest/E0201.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/works/life/java-practice/javatest/src/javatest/E0201.java b/works/life/java-practice/javatest/src/javatest/E0201.java deleted file mode 100644 index 5cda62a..0000000 --- a/works/life/java-practice/javatest/src/javatest/E0201.java +++ /dev/null @@ -1,21 +0,0 @@ -package javatest;
-
-public class E0201 {
- public static int max(int a, int b) {
- return a > b ? a : b;
- }
-
- public static double max(double a, double b) {
- return a > b ? a : b;
- }
-
- public static int max(int a, int b, int c) {
- return max(a, max(b, c));
- }
-
- public static void main(String[] args) {
- System.out.println(max(1, 2));
- System.out.println(max(2.2, 3.3));
- System.out.println(max(1, 2, 3));
- }
-}
|