14 lines
432 B
Java
14 lines
432 B
Java
// innerclasses/DotNew.java
|
|
// (c)2016 MindView LLC: see Copyright.txt
|
|
// We make no guarantees that this code is fit for any purpose.
|
|
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
|
|
// Creating an inner class directly using the .new syntax.
|
|
|
|
public class DotNew {
|
|
public class Inner {}
|
|
public static void main(String[] args) {
|
|
DotNew dn = new DotNew();
|
|
DotNew.Inner dni = dn.new Inner();
|
|
}
|
|
}
|