Skip to content
Updates of Nashorn and Lambda features demonstrated at JavaOne SF 2013 and demo'd at MelbJVM October 2013
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
fireworks
src/org/outrospective/javaone2013
JavaOneUpdate.iml
README.md
simpledemo.js

README.md

JavaOne 2013 Update

Updates of Nashorn and Lambda features demonstrated at JavaOne SF 2013 and demo'd at MelbJVM October 2013

Get JDK 8 from http://jdk8.java.net

Lambda Demo's

SimpleRefactoringMain: A demo to show how annon inner classes can be refactored to lambdas in J8 as well as demonstrating the forEach method added to Hashtable using the new Default methods in interfaces feature.

DefaultMethodsMain: Demoing default methods in Java 8. Resulting in the need to not implement annoying methods in interfaces you didn't usually take seriously (eg Iterator.remove)

Streams: Although I didnt have time to talk through these, these are a sample of methods on the Streams API documentation (http://download.java.net/jdk8/docs/api/java/util/stream/Collectors.html) to give you a feel for what the API could do.

MultipleInheritanceByTypeNotByState: Shows what happens when two interfaces implement the same default method.

Nashorn Demos

simpledemo.js: A demo of jjs and javascript demos in bash

fireworks.js: Demo from jim laskey's blog. A JavaFX written entirely in Javascript. Good to see how to interop with existing Java classes. jjs -fx fireworks.js

suspect.js: Another demo from Jim Laskey's blog. A bash script written in js. Run with jjs -scripting suspect.js

Something went wrong with that request. Please try again.