fork download
  1. public class Main {
  2. public void m1(String arg1) {
  3. arg1="Test";
  4. }
  5. public static void main(String[] args) {
  6. Main test1= new Main();
  7. String s= "Hello";
  8. test1.m1(s);
  9. System.out.println(s); }
  10. }
Success #stdin #stdout 0.08s 52624KB
stdin
Standard input is empty
stdout
Hello