Prepare repository for merge into master

This commit is contained in:
Pavel V. Talanov
2013-10-28 15:20:07 +04:00
parent 8537254b6f
commit 375951798e
801 changed files with 63 additions and 3680 deletions
@@ -0,0 +1,14 @@
import java.util.*;
public class ForEach {
public void test() {
ArrayList<Object> xs = new ArrayList<Object>();
List<Object> ys = new LinkedList<Object>();
for (Object x : xs) {
ys.add(x);
}
for (Object y : ys) {
xs.add(y);
}
}
}
@@ -0,0 +1,15 @@
import java.util.*
public open class ForEach() {
public open fun test() : Unit {
var xs : ArrayList<Any?>? = ArrayList<Any?>()
var ys : MutableList<Any?>? = LinkedList<Any?>()
for (x : Any? in xs!!)
{
ys?.add(x)
}
for (y : Any? in ys!!)
{
xs?.add(y)
}
}
}
@@ -0,0 +1,14 @@
import java.util.*;
public class Lists {
public void test() {
List<Object> xs = new ArrayList<Object>();
List<Object> ys = new LinkedList<Object>();
ArrayList<Object> zs = new ArrayList<Object>();
xs.add(null);
ys.add(null);
xs.clear();
ys.clear();
zs.add(null);
}
}
+13
View File
@@ -0,0 +1,13 @@
import java.util.*
public open class Lists() {
public open fun test() : Unit {
var xs : MutableList<Any?>? = ArrayList<Any?>()
var ys : MutableList<Any?>? = LinkedList<Any?>()
var zs : ArrayList<Any?>? = ArrayList<Any?>()
xs?.add(null)
ys?.add(null)
xs?.clear()
ys?.clear()
zs?.add(null)
}
}