i need to transform this partition of code of scala to java language
scala> List("a", "b", "c") zip (Stream from 1)
res1: List[(String, Int)] = List((a,1), (b,2), (c,3))
how can i replace (Stream from 1) in java? help please
If you want to add an index, use rdd zipWithIndex
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments