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 test
  9. {
  10. test()
  11. {
  12. System.out.println("Constructor");
  13. }
  14. void test()
  15. {
  16. System.out.println("member function");
  17. }
  18. }
  19. class Ideone
  20. {
  21. public static void main (String[] args) throws java.lang.Exception
  22. {
  23. test test=new test();
  24. test.test();
  25. }
  26. }
Success #stdin #stdout 0.1s 320512KB
stdin
Standard input is empty
stdout
Constructor
member function