DigitMagazine

Get value from Index in Groovy

Jun 24th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. //To get the values from a list index
  2. println("First Prime => " + listOfPrimes[0])
  3. println("Second Prime => " + listOfPrimes.get(1))
Add Comment
Please, Sign In to add comment