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. class Print
  8. {
  9. public void drucke()
  10. {
  11. System.out.println("Hello Bulme");
  12. }
  13. public void drucke(String str)
  14. {
  15. System.out.println(str);
  16. }
  17. }
  18.  
  19. /* Name of the class has to be "Main" only if the class is public. */
  20. class Ideone
  21. {
  22. public static void main (String[] args) throws java.lang.Exception
  23. {
  24. int xy;
  25. Print print = new Print();
  26. print.drucke();
  27. print.drucke("Hello World");
  28.  
  29. //System.out.println("Hello Bulme");
  30. }
  31. }
Success #stdin #stdout 0.1s 320576KB
stdin
Standard input is empty
stdout
Hello Bulme
Hello World