Dear All,
Kindly let me know what am I doing wrong in the below code? I am getting errors in the UDF ...
int I_Length = 0;
int H_Count = 0;
String flag;
H_Count = I_Val.replaceAll("-","").length(); // Count all "-" in the string
I_Length = I_Val.length(); // Count the length of the string
if ( (H_Count.equals("3")) && (I_Length.equals("21")) )
flag = "x";
else flag = "y";
return flag;
"I_Val" is a variable that I am passing in the UDF. I getting error as - Error in source code.
Please help. Thanks,
--Abhi