on 06-28-2017 3:46 AM
you can try this with "all values of context"
for (int i = 0; i < input.length; i++)
{
if ((input.length > i + 1) && (input[i].equals(input[i + 1])))
{
result.addValue(input[i]);
result.addValue(ResultList.CC);
}
else {
result.addValue(input[i]);
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudha,
Try this by setting "All values in context"
String s=input[0];
for(int i=0;i<input.length;i++)
{
if(i!=input.length-1)
{
if(s.equals(input[i+1]))
{
result.addValue(input[i]);
result.addValue(ResultList.CC);
}
else
{
result.addValue(input[i]);
}
s=input[i+1];
}
}
Thanks & Regards,
Avinash B
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.