BAEL-870 How to call a method during runtime using reflection? (#1769)
* BAEL 870 How to call method during runtime using reflection? * BAEL-870 How to call a method during runtime using reflection?
This commit is contained in:
committed by
KevinGilmore
parent
14f90c8636
commit
9d9d0cc427
@@ -0,0 +1,17 @@
|
||||
package com.baeldung.java.reflection;
|
||||
|
||||
public class Operations {
|
||||
|
||||
public double sum(int a, double b) {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
public static double multiply(float a, long b){
|
||||
return a * b;
|
||||
}
|
||||
|
||||
private boolean and(boolean a, boolean b) {
|
||||
return a && b;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user