Skip to content

Instantly share code, notes, and snippets.

Created February 22, 2014 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9157244 to your computer and use it in GitHub Desktop.
Save anonymous/9157244 to your computer and use it in GitHub Desktop.
public class SayOneAndTwo implements start.DoOneAndTwo {
public void doOne() {
System.out.println("Say one");
}
public void doTwo() {
System.out.println("Say two");
}
}
public class start {
public static void main(String[] args) throws Exception {
DoOneAndTwo program = (DoOneAndTwo) Class.forName(args[0]).newInstance();
program.doOne();
program.doTwo();
}
public interface DoOneAndTwo {
void doOne();
void doTwo();
}
}
java start SayOneAndTwo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment