Friday Jul 10, 2015

Get Started with Lambdas and Streams

Want to finally get hands-on training on Java 8 Lambdas? Join the JDK 8 MOOC on Lambdas and Streams! The course starts on July 14th and runs for 3 weeks. Take this online course at your own pace. You will be able to interact with your peers and the instructor panel on a dedicated forum. 

In this course, you will learn: 
  • Apply Lambdas to everyday problems
  • Convert anonymous classes to Lambda expressions
  • Apply the Streams API to solve problems of sorting, identifying the most and least, and reducing duplicates
  • Determine when to apply Lambdas (and when not to!)
  • Use Collectors
  • Improve performance with parallel streams
  • Debug Lambda expressions

This course is free.Register Today

Wednesday Jul 08, 2015

Java ME 8 Tutorial Series

In Part 1 of his series on using Java ME 8 to control Internet of Things (IOT) devices--such as LEDs, relays, LCDs, sensors, motors, and switches--connected to a Raspberry Pi, Jose Cruz explained how to work with devices that use a simple general-purpose input/output (GPIO) interface. GPIO devices can be used as either a digital input or digital output, can be disabled or enabled, and can be used to drive interrupt lines. Part 1 explored how to connect and control a flame sensor, a movement sensor, and a motion sensor.

In Part 2 of his series, Cruz described how to connect and control devices that use an inter-integrated circuit bus (I2C) interface. 

Now, in Part 3 of the series, Cruz demonstrates how to use universal asynchronous receiver/transmitter (UART) interfaces to connect devices that read latitude, longitude, altitude, and time from a GPS receiver engine board and provide the information via spoken voice in English and Spanish.

As before, you will see how to develop Java ME 8 classes that allow you to gather data and control these devices. The code for the classes is very similar, so once you understand it, you will be able to create new classes that control additional UART devices to create your own IoT world.

Customize Your JavaOne Experience

By David Lopez

Looking for the perfect way to experience this year's JavaOne conference? With a variety of packages, add-ons, and deals, JavaOne 2015 has something for everyone.


The full conference pass gives you the most access. With the pass, you have access to over 450 JavaOne sessions and events, keynote speakers and exhibition halls at both JavaOne and Oracle OpenWorld (Check out our great keynote lineup here), the Oracle Users' Forum, the rockin' appreciation event, and so much more. If you're looking to bring a guest along who isn't looking for the full experience, check out our guest add-on. With access to key networking events, exhibition halls, keynotes, and the appreciation event, your guest will get a taste of JavaOne.


If you're looking for a lighter JavaOne experience, be sure to check out the Discover package. Discover offers access to keynotes, exhibit halls, and more at an early bird price of just $50.


There are plenty of other ways to save at JavaOne. Registering for full conference with a group? You can save up to 28% off. Or maybe you're just registering for one. Early bird discounts are still in effect, so register soon and save up to $600. We also offer special government rates for government employees, including higher education institutions.
Take advantage of these deals and be sure to register today! The party starts soon!

Tuesday Jul 07, 2015

Start Testing with Java 9

Learn about some of the changes in the upcoming Java 9 release, expected in Fall 2016. The release is currently in an early stage and a list of features compiled from the list of JEPs is available online. This is a starting point for testing whether Java 9 will affect your code. Make sure to check the list of added, changed, removed functionalities. There are suggestions about how to best test your code against Java 9.


Check out how you can be more involved and participate in Adopt OpenJDK. This community program will get you started whether you want to attend an OpenJDK testing workshop, run your own event, just learn more about the technology or provide feedback. Visit Adopt OpenJDK.


Wednesday Jul 01, 2015

Java 8 Lambdas and Streams Online Training

Want to sharpen your functional programming skills and solve a programming problem with lambdas and streams? In the next Virtual Technology Summit, you will learn how lambdas and streams can be used to solve a Scrabble game problem. With the Scrabble dictionary, the list of the words used by Shakespeare, and the Stream API in hand you will find out the three best words Shakespeare could have played.

VTS is free! You just need to register and choose an event in your time zone:

Americas - July 14th - 9am to 12:30 PST - Register
EMEA - July 15th - 9am to 12:30pm BST - Register
APAC - July 23rd - 3pm to 6:30pm AU/SYD - Register

AGENDA

At the last VTS, Simon Ritter presented “how to think functional with JDK 8”. He described the functional style in detail. Watch the replay and get ready to solve the Scrabble problem!

Tuesday Jun 30, 2015

JavaOne Latin America Highlights

Well-attended by developers, JavaOne Latin America took place last week in São Paulo Brazil.  Amongst the myriad sessions, meetings, entertainment and parties, here are some highlights. 

The community keynote was themed with 20 years of Java and organized by two Java Champions Fabiane Nardon and Bruno Souza. They chronicled the deep involvement of the Brazilian community throughout the history of Java. Bruno Souza, a.k.a JavaMan, founded the Brazilian Java user group SouJava in 1999. Juggy, the Java Finch mascot, was born in 2004.   Fabiane Narbon with her team won the Duke’s Choice Award for Healthcare Information System in 2005. SouJava became the first Java user group member on the JCP executive committee in 2011. 

NightHacking interviews took central stage at the Java Hub. The interviews are being rolled out during the next two weeks. Now available are interviews about Java TV with Bruno Gualda and Thiago Silva, Java and IoT with Vinicius Senger, Java Embedded with Leonardo Lima and Java IoT Cloud with Marco Maciel 

The strategy keynote was packed to hear Vice President of Java SE Platform Georges Saab discuss Java 9 modularity. He encouraged developers to download and test the pre-release builds. “JUGs around the world have helped shape the future of Java EE by participating in the JCP and the Adopt-a-JSR program” explained Senior Director of Software Development Robert Clark. 

Tuesday Jun 23, 2015

Asynchronous Processing

In this interview, Tomasz Nurkiewicz discusses asynchronous processing topics including CompletableFuture, parallelStream(), actors, agents, software transactional memory, Groovy GPars, shared distributed memory, RPC leaky abstraction, and debugging and monitoring asynchronous code. 



Tomasz is a developer who has been programming in Java for the last 8 years in the financial sector. He loves back-end, and passionate about alternative JVM languages.  He is interested in charting, data analysis and reporting. He is DZone’s Most Valuable Blogger (http://nurkiewicz.com)  and used to be very active on StackOverflow.

Sunday Jun 21, 2015

NightHacking at JavaOne Brazil

Watch the interviews live on the NightHacking home page from Tuesday to Thursday during JavaOne next week: http://nighthacking.com/

Nighthacking interviews will take place at Java Hub in the exhibit hall of JavaOne and Oracle OpenWorld at the Transamerica Expo Center in São Paulo, Brazil  

Here is the full interview schedule (all times in São Paulo, Brazil Time          or -3 hours UTC) 


Thursday Jun 18, 2015

Hot Java Topics at the VTS!

In its 20th year, Java is used by over 9 million developers working in every major industry. In the next Virtual Technology Summit, you will learn how to program a parallel application with Java 8 lambdas, build a robot with 3D printed parts and use Docker, a best-in-class platform to test and manage releases. VTS is a series of interactive online events with hands-on sessions and presenters answering technical questions. The events are sponsored by the Oracle Technology Network (OTN). They are free events but you must register. Join the next exclusive events close to you  

Americas - July 14th - 9am to 12:30 PST - Register
EMEA - July 15th - 9am to 12:30pm BST - Register
APAC - July 23rd - 3pm to 6:30pm AU/SYD - Register

The three sessions are: 
  • Docker for Java Developers with Roland Huss 
Docker, the OS-level virtualisation platform, takes the IT world by storm. In this session, we will see what features Docker has for us Java developers. It is now possible to create truly isolated, self-contained and robust integration tests in which external dependencies are realised as Docker containers. Docker also changes the way we ship applications in that we are not only deploying application artifacts like WARs or EARs but also their execution contexts. Beside elaborating on these concepts and more, this presentation will focus on how Docker can best be integrated into the Java build process by introducing a dedicated Docker Maven plugin which is shown in a live demo.
  • Pi on Wheels,  Make Your Own Robot with Michael Hoffer 
The Pi on Wheels is an affordable open source DIY robot that is ideal for learning Java-related technologies in the context of the Internet of Things. In this session we will talk about how 3D printing works and how it can be utilized to build robots. The most fascinating aspect of 3D printing is that is is astonishingly easy to customize the robot. It allows you to build something completely new and different. We provide a Java based IDE that allows you to control and program the robot. In addition to that it can be used to programmatically design 3D geometries.

  • Shakespeare Plays Scrabble with Jose Paumard

This session will show how lambdas and Streams can be used to solve a toy problem based on Scrabble. We are going to solve this problem with the Scrabble dictionary, the list of the words used by Shakespeare, and the Stream API. The three main steps shown will be the mapping, filtering and reduction. The mapping step converts a stream of a given type into a stream of another type.Then the filtering step is used to sort out the words not allowed by the Scrabble dictionary. Finally, the reduction can be as simple as computing a max over a given stream, but can also be used to compute more complex structures. We will use these tools to extract the three best words Shakespeare could have played.

Tuesday Jun 16, 2015

Create Test Logs Like Javadocs

In a new article, Madhu Seelam and Raghunandan Seshadri describe how to build a test framework that ensures logs from test classes and TestNG listeners that are executed in parallel reach the appropriate log file and are organized in a format similar to that of Javadocs.

TestNG is a popular open source test automation framework that provides support for parallel test execution. Java Logging APIs can ensure thread-safe logging from numerous threads and logging within test cases, as well as callback functions within listeners. However, when tests are executed in parallel, the logs from various test cases are interleaved, which makes it difficult to isolate the logs for a given test case.

Using the solution described in this article, all logs from a given TestNG test class reside in one HTML file, and HTML files can be linked into a format similar to that of Javadocs. This enables you to select a package and select the corresponding class to view the logs related to just that test class, even when the tests have been executed in parallel. Read the article

About

Insider News from the Java Team at Oracle!

duke
Links


Search

Archives
« August 2015
SunMonTueWedThuFriSat
      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
     
Today