0
如何將int值轉換爲字符串意味着我的字符串將是42646字符其mod 42600如何顯示和打印此字符以及如何?如何將提醒int值轉換爲字符串(字符)
int count = image_length.length(); //count=42646
System.out.println(count);
int mod = count % length; //46
int rem = count - mod; //42600
String rem_value = String.valueOf(rem);
// I want to get string through reminder value 42600 & how
String[] split = rem_value.split("[^a-zA-Z/]", length);
getSaltString();
photoName = randStr + "_IMG.jpg";
StringBuilder stringBuilder = new StringBuilder();
for (int i = 0; i < split.length; i++) {
url_part = String.valueOf(stringBuilder.append(split[i]));
new RegisterImageThread(ActivityRegisterUploadPhoto.this).execute(photoName, url_part + i);
}
new RegisterImageThread(ActivityRegisterUploadPhoto.this).execute(photoName, url_part+rem_value);
你可以嘗試改寫這個問題。我真的不知道你在做什麼。 – Fildor
我無法解決您的問題。請重新說明它! –
我剛剛格式化了代碼。 – RamenChef