fork(4) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. static class Foo {
  8. static void Bar(Ideone one) {
  9. one.Baz();
  10. }
  11. }
  12.  
  13. private void Baz() {
  14. System.out.println("Hello, world!");
  15. }
  16.  
  17. public static void main (String[] args) throws java.lang.Exception
  18. {
  19. Foo.Bar(new Ideone());
  20. }
  21. }
Success #stdin #stdout 0.04s 4386816KB
stdin
Standard input is empty
stdout
Hello, world!