fork download
  1. public class Main {
  2.  
  3. static void printHello1(String str) {
  4. System.out.println("Hello.wold!");
  5. }
  6.  
  7. static String printHello2(String str) {
  8. System.out.println("Hello.wold!");
  9. return "";
  10. }
  11.  
  12. static String printHello3() {
  13. System.out.println("Hello.wold!");
  14. return "";
  15. }
  16.  
  17. static void printHello4() {
  18. System.out.println("Hello.wold!");
  19. }
  20.  
  21. public static void main(String[] args) {
  22. printHello1("");
  23. printHello2("");
  24. printHello3();
  25. printHello4();
  26. }
  27. }
Success #stdin #stdout 0.06s 215552KB
stdin
Standard input is empty
stdout
Hello.wold!
Hello.wold!
Hello.wold!
Hello.wold!