I have small code where i have to add condition to get proper output.
if the element inside the mimeList is Last then go to else part. or to the if.
there is always 1 element in this ArrayList.
(if it has only one element then it means it is last element.)
for (int i = 0; i < mimeList.size(); i++) {
StringBuffer sb = new StringBuffer();
if () {
queryString = sb.append(queryString).append(key)
.append("=").append(mimeList.get(i)).append(" or ").toString();
}else{
queryString = sb.append(queryString).append(key)
.append("=").append(mimeList.get(i)).toString();
}
}
if (!(i == 0 || i == mimeList.size()))?icannot be equal tomimeList.size()