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:
committed by
KevinGilmore
parent
cae4e4c78d
commit
934fc3ff39
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user