我从串行端口读取数据,我想将此数据拆分为较小的数字示例:
String inputData = "3032592556231055126395692345723465234578235698"
output : data1 = "30325925562"
data2 = "31055126395"
data3 = "692345723"
data4 = "465234578"
data5 = "235"
data6 = "698"
这正是我想做的。