on 02-09-2010 3:28 PM
Hi ,
In the following code when I executed its giving the below error
Code:
//Write your code here
StringBuffer message = new StringBuffer();
for(int i=0;i<a.length;i++)
{
if (!(a.equalsIgnoreCase(ResultList.CC)))
{
message.append(a + " ");
}
}
result.addValue(message.toString());
Error:
cannot resolve symbol symbol : method equalsIgnoreCase (java.lang.String) location: class java.lang.String[] if (!(a.equalsIgnoreCase(ResultList.CC)))
My Scenario is similar to this one where I
RootNode 0..unbounded
ChildNode 0..1
This root node will be repeated mutiple times on source and target and I have to map to field for all the occurences of childNode into one element.
Thanks in advance...
> //Write your code here
> StringBuffer message = new StringBuffer();
> for(int i=0;i<a.length;i++)
> {
> if (!(a[<i>].equalsIgnoreCase(ResultList.CC)))
> {
> message.append(a [[ i ]] + " ");
> }
> }
> result.addValue(message.toString());
I believe you must use a [ [ i ] ] instead of a as shown above..!!
VJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.