fork download
  1. //
  2. public class main_Activity extends Activity{
  3. @Override
  4. public void onCreate(Bundle savedInstanceState) {
  5. super.onCreate(savedInstanceState);
  6. Test t = new Test(this);
  7. t.setText();
  8. }
  9. public putText(String s){
  10. TextView.setText(s);
  11. }
  12. }
  13. //
  14. public class Test {
  15. main_Activity a;
  16. Test(main_Activity a) {
  17. this.a = a;
  18. }
  19. public setText(){
  20. a.putText("ABC");
  21. }
  22. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty