Skip to content

Instantly share code, notes, and snippets.

@raa0121
Created November 4, 2011 07:20
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 raa0121/1338841 to your computer and use it in GitHub Desktop.
Save raa0121/1338841 to your computer and use it in GitHub Desktop.
JavaTest
//すごく適当に書いてるので、適宜読み替えてね!
//多分こんな感じだと思う
//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