Java Substring на основе разделителя
String[] number_withStatus = scan.next().split(",");
Fahim Foysal
String[] number_withStatus = scan.next().split(",");