JavaCompilerCore/resources/AllgemeinTest/StreamTest.jav

14 lines
276 B
Plaintext
Raw Normal View History

import java.util.stream.Stream;
import java.util.Vector;
import java.lang.Integer;
class StreamTest {
m() {
var vecInt = new Vector<Integer>();
var strInt = vecInt.stream();
var dup = x -> x*2;
strInt.map(dup);
return dup;
}
}