Recently I have been working on a Java program. Today I have ran into an issue, where I would have to use values of a range of fields in a array. The length of the array is unknown, it is basically user input broken down into pieces. When I say I want to use the values of multiple fields in an array I mean something like that example from Ruby I am going to give you:
puts arr[1..10]
I can't seem to find the Java version of that thing.
I searched on the internet for the solution but I think I wrote the question wrong because it all led me to a tutorial how to make arrays.