public void foo() throws IOException { try(Gate gate = new Gate()) { System.out.println("use gate here"); } }

public static class Gate implements Closeable { @Override public void close() throws IOException { System.out.println("We're closed!"); } }

Version 2.1 last modified by Geoff Fortytwo on 20/12/2013 at 08:57

Attachments 0

No attachments for this document
Website Top
Send Me Mail!:
   g42website4 AT g42.org
My Encyclopaedia Blog

Creator: Geoff Fortytwo on 2013/12/19 15:56
Copyright 2004-2007 (c) XPertNet and Contributing Authors
1.3.2.9174