diff options
author | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-08-28 20:31:35 +0400 |
---|---|---|
committer | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-08-28 20:31:35 +0400 |
commit | 270a3f6e22782278a5254c4c073cad2ad8b6ccf8 (patch) | |
tree | 55ea555868fdab92eff97395d36aa83599f0cf39 /test/test/misc/en/Operation.java | |
parent | b3705cf40072203386d784c161419cbcc9e9d164 (diff) | |
download | fernflower-270a3f6e22782278a5254c4c073cad2ad8b6ccf8.tar fernflower-270a3f6e22782278a5254c4c073cad2ad8b6ccf8.tar.gz fernflower-270a3f6e22782278a5254c4c073cad2ad8b6ccf8.tar.lz fernflower-270a3f6e22782278a5254c4c073cad2ad8b6ccf8.tar.xz fernflower-270a3f6e22782278a5254c4c073cad2ad8b6ccf8.zip |
java-decompiler: post-import cleanup (unneeded files dropped)
Diffstat (limited to 'test/test/misc/en/Operation.java')
-rw-r--r-- | test/test/misc/en/Operation.java | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/test/test/misc/en/Operation.java b/test/test/misc/en/Operation.java deleted file mode 100644 index 3051fb3..0000000 --- a/test/test/misc/en/Operation.java +++ /dev/null @@ -1,51 +0,0 @@ -package test.misc.en; - -public enum Operation { - - PLUS(2) { - double eval(double x, double y) { return x + y; } - }, - MINUS(7) { - double eval(double x, double y) { return x - y; } - }, - TIMES(8) { - double eval(double x, double y) { return x * y; } - }, - DIVIDED_BY(0) { - double eval(double x, double y) { return x / y; } - }; - - - // Perform the arithmetic operation represented by this constant - - abstract double eval(double x, double y); - - Operation(int t) { - -// class LocalClass { -// -// } -// -// LocalClass e = null; - - System.out.println(); - } - - - public static void main(String args[]) { - double x = Double.parseDouble(args[0]); - double y = Double.parseDouble(args[1]); - - Operation opp = Operation.DIVIDED_BY; - - switch(opp) { - case MINUS: - System.out.println(); - case PLUS: - } - - for (Operation op : Operation.values()) { - System.out.println(x + " " + op + " " + y + " = " + op.eval(x, y)); - } - } -}
\ No newline at end of file |