我想将一个字符串值插入到已声明的字节数组中的特定索引范围中。我该怎么做?
byte [] sector = new byte[SECTORSIZE];
String str1 = "Sector 0, Record 0";
//I want to insert str1 into sector at indexes 0 - str1.length()
String str2 = "Sector 0, Record 1";
//I want to insert str2 into sector at indexes 128 - str2.length() + 128