Last active
July 30, 2017 13:27
-
-
Save yum45f/8fc767ac1b24df76a3b65bed5fab6b51 to your computer and use it in GitHub Desktop.
パッケージ名がわからないクラスにあるメソッドを呼び出すプログラム。(一部抜粋)
This file contains hidden or 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
package cl1; | |
public class class1{ | |
public static void start(){ | |
System.out.println("成功!2"); | |
} | |
} |
This file contains hidden or 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
package cl2; | |
public class class2{ | |
public static void main(String[] args){ | |
//cl1.class1.start(); | |
//cl1.class1.start(); を実行したい。(ひとつの命令で。) | |
//ただ、クラス名、パッケージ名がわからない。 | |
//Scratchで言う、メッセージを送るみたいな感じで実行したい。 | |
} | |
} |
This file contains hidden or 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
package cl3; | |
public class class3{ | |
public static void start(){ | |
System.out.println("成功!:3"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment