BAEL-870 How to Call a Method During Runtime Using Reflection (#1789)

* BAEL-870 How to Call a Method During Runtime Using Reflection

* Update OperationsUnitTest.java

Rename Test Name
This commit is contained in:
Raúl Juárez
2017-05-06 13:00:40 -05:00
committed by KevinGilmore
parent cae4e4c78d
commit 934fc3ff39
3 changed files with 59 additions and 17 deletions

View File

@@ -1,17 +1,21 @@
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){
public static double multiply(float a, long b) {
return a * b;
}
private boolean and(boolean a, boolean b) {
return a && b;
}
protected int max(int a, int b) {
return a > b ? a : b;
}
}