fork(61) download
  1. class Main
  2. {
  3. private static String changeString(String s){
  4. return s + "World";
  5. }
  6.  
  7. public static void main(String[] args) {
  8. String s = "Hello";
  9. String res = changeString(s);
  10. System.out.println(res);
  11. }
  12. }
Success #stdin #stdout 0.02s 245632KB
stdin
Standard input is empty
stdout
HelloWorld