In my task I need to read this input 1,2,3. I read it from file.
String listOfNumbers= reader.readLine(); listOfNumbers= listOfNumbers.replace(","