Created
November 4, 2011 07:20
-
-
Save raa0121/1338841 to your computer and use it in GitHub Desktop.
JavaTest
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
//すごく適当に書いてるので、適宜読み替えてね! | |
//多分こんな感じだと思う | |
//class testはメソッドや変数の定義を作っておくところ | |
class test1{ | |
int A(){ | |
B(); | |
} | |
int B(){ | |
} | |
} | |
class test2{ | |
int A(int a){ | |
return a; | |
} | |
int B(){ | |
return b; | |
} | |
} | |
//publicクラス | |
public class test{ | |
public static void main(String[] ages){ | |
test1 t1 = new test1(); | |
test2 t2 = new test2(); | |
t1.A(); | |
t2.A(t2.B()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment