Vector returnStrings = new Vector();
// add header, sender, and title
- returnStrings.add(header);
- returnStrings.add(from);
- returnStrings.add(subject);
+ returnStrings.addElement(header);
+ returnStrings.addElement(from);
+ returnStrings.addElement(subject);
String[] splittedBody = body.split();
{
if(segment.startsWith("http://")) // URL
{
- returnStrings.add(segment);
+ returnStrings.addElement(segment);
}
else if(isEmailAccount(segment)) // email
{
- returnStrings.add(segment);
+ returnStrings.addElement(segment);
}
}
Vector returnStrings = new Vector();
// add header, sender, and title
- returnStrings.add(header);
- returnStrings.add(from);
- returnStrings.add(subject);
+ returnStrings.addElement(header);
+ returnStrings.addElement(from);
+ returnStrings.addElement(subject);
char[] charArray = noURLBody.toCharArray();
for(int i=1; i< noURLBody.length(); i++)
{
if((i % size) == 0) {
- returnStrings.add(tmpStr);
+ returnStrings.addElement(tmpStr);
tmpStr = new String();
}
else {
}
}
- returnStrings.add(tmpStr);
+ returnStrings.addElement(tmpStr);
return returnStrings;
}