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