Prepare repository for merge into master
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user