14 lines
409 B
Java
14 lines
409 B
Java
// 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();
|
|
}
|
|
}
|