All pastes #619744 Raw Edit

Stuff

public java v1 · immutable
·published 2007-07-14 23:59 UTC
rendered paste body
Class<?> aClass = anInstance.getClass();        Method fun = null;        try {            fun = aClass.getMethod("method", new Class<?>[] {Integer.class, String.class});        } catch (SecurityException ex) {            ex.printStackTrace();        } catch (NoSuchMethodException ex) {            ex.printStackTrace();        }        try {            fun.invoke(anInstance, new Object[] {new Integer(3), "billjoy"});        } catch (IllegalArgumentException ex) {            ex.printStackTrace();        } catch (InvocationTargetException ex) {            ex.printStackTrace();        } catch (IllegalAccessException ex) {            ex.printStackTrace();        }