14 lines
276 B
Plaintext
14 lines
276 B
Plaintext
|
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;
|
||
|
}
|
||
|
}
|