Created
February 22, 2014 16:09
-
-
Save anonymous/9157244 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SayOneAndTwo implements start.DoOneAndTwo { | |
public void doOne() { | |
System.out.println("Say one"); | |
} | |
public void doTwo() { | |
System.out.println("Say two"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java start SayOneAndTwo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment