java.lang: add Integer wrapper
[mate.git] / java / lang / Integer.java
diff --git a/java/lang/Integer.java b/java/lang/Integer.java
new file mode 100644 (file)
index 0000000..3f94091
--- /dev/null
@@ -0,0 +1,17 @@
+package java.lang;
+
+public class Integer {
+       int value;
+
+       public Integer(int a) {
+               this.value = a;
+       }
+
+       public int intValue() {
+               return this.value;
+       }
+
+       public static Integer valueOf(int a) {
+               return new Integer(a);
+       }
+}