fork(3) download
  1. class Private
  2. {
  3. private int state = 42;
  4.  
  5. public static class Inner {
  6. void frobnicate(Private p) {
  7. System.out.println("I peeked at " + p.state);
  8. }
  9. }
  10.  
  11. public static void main (String[] args) throws java.lang.Exception
  12. {
  13. Private ryan = new Private();
  14. new Inner().frobnicate(ryan);
  15. }
  16. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
I peeked at 42