|
Scala example source code file (nest.scala)
The Scala nest.scala source code//############################################################################ // Test Scala interaction with Java nested classes and static members. //############################################################################ /** found in nest.jar, compiled from nest.java */ import nestpkg._; object Test extends App { val x = nest.best.rest.test Console.println(x.inc(1)) val o = new nest.best; val r = new nest.best.rest; Console.println(nest.best.rest.test.inc(2)) Console.println(nest.best.rest.x) print("Instantiating public inner class: ") val outer = new nest val inn = new outer.Inn(42) inn.doSomething } Other Scala examples (source code examples)Here is a short list of links related to this Scala nest.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.