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. /* Name of the class has to be "Main" only if the class is public. */
  8. class En{
  9. static class n{
  10. void m(){
  11. System.out.println("hello");
  12. }
  13. }
  14. }
  15. class Ideone
  16. {
  17. public static void main (String[] args) throws java.lang.Exception
  18. {
  19. // your code goes here
  20. En.n nc = new En.n();
  21. nc.m();
  22. }
  23. }
Success #stdin #stdout 0.08s 47028KB
stdin
Standard input is empty
stdout
hello