Given the example.csv:
nome;idade;10;21;32;43;54
I can use the Scanner
class to read such a file. Using the .useDelimiter()
method and taking advantage of ;
to get each value. So I use .next()
for nome
and for idade
. For the other five values I use .nextInt()
, since they are all integers.
My question: How to ignore, for example, the first three values and pick up only the last two ?? Do I still use .nextInt()
or is there another method to help me with this?