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:
Raúl Juárez
2017-05-04 22:27:05 -05:00
committed by KevinGilmore
parent 14f90c8636
commit 9d9d0cc427
2 changed files with 70 additions and 0 deletions

View File

@@ -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;
}
}