on 04-12-2012 11:58 PM
Hi,
I found this post with solution for UDF for converting source node to target single node array http://scn.sap.com/message/9129375#9129375
I am new to Java and have not been able to determine the cause and resolution for this error. Can anybody suggest a solution?
The code is:
public void calculate1(String[] var1, ResultList result, Container container) throws StreamTransformationException{
StringBuffer sb = new StringBuffer();
for(int i = 0; i<var1.length;i++){
sb.append(var1 <i>);
}
result.addValue(sb.toString());
}
When i run a check on it I get the following error messages:
"Function calculate1, Line 4:
illegal start of expression
sb.append(var1 <i>);
^
Function calculate1, Line 4:
')' expected
sb.append(var1 <i>);
^
2 errors"
regards
Julian
Use as below... Don't use angle brackets. Use [ ] as below...
sb.append(var1 [i]);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.