Guest User

Untitled

a guest
Feb 13th, 2013
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. class StaticClass {
  2.   static a fun1(b, c) {
  3.    ////
  4.    
  5.   }
  6.   static b fun2(c, d) {
  7.    ////
  8.   }
  9. }
  10.  
  11. class funMap {
  12.   Object call(String func, Object... args) {
  13.      if (func.equals("fun1")) {
  14.         return (a) (StaticClass.fun1((b)args[0], (c)args[1]));
  15.      } else if (func.equals("fun2")) {
  16.         return (a) (StaticClass.fun2((c)args[0], (d)args[1]));
  17.      }
  18.   }
  19. }
  20.  
  21. class funCaller {
  22.    a method(b b1) {
  23.      c c1;
  24.      // ///
  25.      funMap f = new funMap();
  26.      f.call("fun1", b1 ,c1);
  27.   }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment