Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class StaticClass {
- static a fun1(b, c) {
- ////
- }
- static b fun2(c, d) {
- ////
- }
- }
- class funMap {
- Object call(String func, Object... args) {
- if (func.equals("fun1")) {
- return (a) (StaticClass.fun1((b)args[0], (c)args[1]));
- } else if (func.equals("fun2")) {
- return (a) (StaticClass.fun2((c)args[0], (d)args[1]));
- }
- }
- }
- class funCaller {
- a method(b b1) {
- c c1;
- // ///
- funMap f = new funMap();
- f.call("fun1", b1 ,c1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment