I have a static method titled chooseDialog(String s, int i) in which I want to call another method within the same class (Dialogs.class) based on the parameters provided to
Method method = Dialogs.getMethod(s, Integer.class); method.invoke(null, i);