0

Get information from string

I have String like String line= Alice 58 63 77 40 I want to het its information as String name=alice Int mark1=58 Int mark2=63 Int mark3=77 Int mark4=40 What is the best solution in java please??

19th Nov 2020, 10:55 PM
Michel Ghaith
Michel Ghaith - avatar
2 Respostas
0
Scanner(string)
20th Nov 2020, 1:03 AM
zemiak
+ 1
Show me your code
20th Nov 2020, 12:41 AM
George S Mulbah II
George S Mulbah II - avatar