Reading String for list of Integers separated by spaces [duplicate]

String splitMe= "21 42 8 7 51" ;
String[] values = splitMe.split(" ");

Leave a Comment