changeset 118:d617fd620f60

Added two new examples for examining Java bytecode.
author ptisnovs
date Sat, 14 Jun 2014 21:44:12 +0200
parents 1ec224922e4b
children b68b537d73f0
files ChangeLog bytecode/Java/Test19.java bytecode/Java/Test20.java
diffstat 3 files changed, 42 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jun 08 18:28:00 2014 +0200
+++ b/ChangeLog	Sat Jun 14 21:44:12 2014 +0200
@@ -1,3 +1,9 @@
+2014-06-14  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* bytecode/Java/Test19.java:
+	* bytecode/Java/Test20.java:
+	Added two new examples for examining Java bytecode.
+
 2014-06-08  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* bytecode/Python/Test12.py:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bytecode/Java/Test19.java	Sat Jun 14 21:44:12 2014 +0200
@@ -0,0 +1,18 @@
+/**
+ * Vytvareni (konstrukce) jednorozmernych poli.
+ */
+public class Test19 {
+
+    static void createArrays(int size) {
+        boolean[] booleanArray = new boolean[size];
+        char[]    charArray    = new char[size];
+        byte[]    byteArray    = new byte[size];
+        short[]   shortArray   = new short[size];
+        int[]     intArray     = new int[size];
+        long[]    longArray    = new long[size];
+        float[]   floatArray   = new float[size];
+        double[]  doubleArray  = new double[size];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bytecode/Java/Test20.java	Sat Jun 14 21:44:12 2014 +0200
@@ -0,0 +1,18 @@
+/**
+ * Vytvareni (konstrukce) vicerozmernych poli.
+ */
+public class Test20 {
+
+    static void createArrays(int size1, int size2) {
+        boolean[][] booleanArray = new boolean[size1][size2];
+        char[][]    charArray    = new char[size1][size2];
+        byte[][]    byteArray    = new byte[size1][size2];
+        short[][]   shortArray   = new short[size1][size2];
+        int[][]     intArray     = new int[size1][size2];
+        long[][]    longArray    = new long[size1][size2];
+        float[][]   floatArray   = new float[size1][size2];
+        double[][]  doubleArray  = new double[size1][size2];
+    }
+
+}
+