| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/CSapprenticeWT/OnJava8-Examples/master/innerclasses/DotNew.java | [Back] [Original] |
// innerclasses/DotNew.java
// (c)2021 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// Creating an inner class directly using .new syntax
public class DotNew {
public class Inner {}
public static void main(String[] args) {
DotNew dn = new DotNew();
DotNew.Inner dni = dn.new Inner();
}
}
| Web Proxy Viewer | New URL | Original Page |