diff options
author | Stiver <stiver.mail@gmail.com> | 2014-03-04 15:13:11 +0100 |
---|---|---|
committer | Stiver <stiver.mail@gmail.com> | 2014-03-04 15:13:11 +0100 |
commit | e2d0f5d9c38561d67f23754c00addb4a3547efb2 (patch) | |
tree | 1832f16037c086b48266b8566aecc61f45f4e5f1 /src/test/input/TestJavac8.java | |
download | fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.gz fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.lz fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.xz fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.zip |
initial commit
Diffstat (limited to 'src/test/input/TestJavac8.java')
-rw-r--r-- | src/test/input/TestJavac8.java | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/test/input/TestJavac8.java b/src/test/input/TestJavac8.java new file mode 100644 index 0000000..068750c --- /dev/null +++ b/src/test/input/TestJavac8.java @@ -0,0 +1,58 @@ +package test.input; + +import java.io.FileReader; +import java.io.IOException; +import java.lang.reflect.Method; +import java.util.Arrays; +import java.util.List; + +public class TestJavac8 { + +// public static void main(String args[]) { +// new TestJavac8().testLambda(); +// } +// +// public void testTryResources() throws IOException { +// +// try (FileReader reader = new FileReader("file"); FileReader reader1 = new FileReader("file")) { +// System.out.println(); +// } +// +// } +// +// public void testMultiCatch() { +// +// try { +// Method method = getClass().getDeclaredMethod("foo"); +// } catch (NoSuchMethodException | SecurityException e) { +// e.printStackTrace(); +// } +// } +// +// +// private void testSwitchString() { +// +// String s = ""; +// switch(s) { +// case "Aa": // "xyz": +// System.out.println("!"); +// break; +// case "BB": // "abc": +// System.out.println("?"); +// break; +// case "__": +// System.out.println("_"); +// break; +// default: +// System.out.println("#"); +// } +// +// } + + public void testLambda() { + + List<Integer> list = Arrays.asList(1, 2, 3, 4, 5, 6, 7); + list.forEach(n -> {int a = 2 * n; System.out.println(a);}); + } + +} |