I have a string 'line' in java containing numbers , for example , "34 55 64 "
I want to store these 3 numbers in int x , y ,z
when I do ,
x = Integer.parseInt(line[0])
y = Integer.parseInt(line[1])
I get an error saying a "array required but string found " . I do not understand why it needs an array
x,y,z
are declared integers and line is declared as a string