Skip to Content
0
Former Member
Mar 26, 2012 at 09:33 AM

Regarding UDF JAVA code not working

58 Views

Hi

I have written a udf cod for checking the condition i have tested the code in eclipse it is working fine but when i put the same code and test in pi

it not giving expected result

It is not evaluation the below condition in pi ( if (a.equals("F") && (b != ("03"))))

String a = "F";

String b = "4";

String c= "";

System.out.println(a);

System.out.println(b);

if (a.equals("F") && (b != ("03")))

{

c="test";

System.out.println(c);

}

else if(a.equals("F") && (b.equals("03")))

{System.out.println("PMI");}

else if (a.equals("E"))

{

System.out.println("FAB");

}

else if (a.equals("X"))

{

System.out.println("MIX");

}

else

{

System.out.println("NA");

}

}}

Any suggestions

Thanks

Sankar