I have a simple Java function which return Integer:
class TestClass {
private int testMethod(int a, int b){
// Some code
return a + b;
}
}
How can I call this function from JavaScript and store the return value in variable?
I have a simple Java function which return Integer:
class TestClass {
private int testMethod(int a, int b){
// Some code
return a + b;
}
}
How can I call this function from JavaScript and store the return value in variable?