fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7.  
  8. class Print
  9. {
  10. public void drucke()
  11. {
  12. System.out.println("Hello Bulme");
  13. }
  14.  
  15. public void drucke(String str)
  16. {
  17. System.out.println(str);
  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("Hello World");
  30.  
  31. //System.out.println("Hello Bulme");
  32. }
  33. }
Success #stdin #stdout 0.11s 320576KB
stdin
Standard input is empty
stdout
Hello Bulme
Hello World