String address=null;
String body = "";
String date = "";
for(int i = 0; somecondition; i++)
{
body = cursor.getBody(i);
//and so on all strings get changed
//REST OF THE CODE
}
This loops for arround 500 times so what should I use?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Given that nothing changes in the String you are just reassigning it, use a String. StringBuilder is used when you want to build up a String in pieces.