fork(3) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. class Print
  8. {
  9. public void drucke ()
  10. {
  11. System.out.println("hallo bulme");
  12. }
  13.  
  14. public void drucke ( String str)
  15. {
  16. System.out.println(str);
  17.  
  18. }
  19. }
  20.  
  21. /* Name of the class has to be "Main" only if the class is public. */
  22. class Ideone
  23. {
  24. public static void main (String[] args) throws java.lang.Exception
  25. {
  26. int xy ;
  27. Print print = new Print();
  28. print.drucke () ;
  29. print.drucke("hallo world");
  30. //System.out.println("hallo bulme");
  31. }
  32. }
Success #stdin #stdout 0.1s 320512KB
stdin
Standard input is empty
stdout
hallo bulme
hallo world