Skip to content

Instantly share code, notes, and snippets.

@oscarryz
Created May 25, 2011 07:14
Show Gist options
  • Save oscarryz/990495 to your computer and use it in GitHub Desktop.
Save oscarryz/990495 to your computer and use it in GitHub Desktop.
Reference wrapper to avoid T[] pattern.
class _<__> {
public __ _;
public _(__ __) {
_ = __;
}
public static void main( String ... args ) {
_<String> s = new _<String>("Hola");
s._ = "Adios";
System.out.println( s._ );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment