Showing posts with label Java 8. Show all posts
Showing posts with label Java 8. Show all posts

Tuesday, October 18, 2016

Java 8 Language Features on Android


With the help of the Jack toolchain, you’ll be able to cut out boilerplate code with the help of some Java 8 language features. Lambda expressions provide a compact way to express functional interfaces (interfaces with a single method) and method references allow you to use existing methods as lambda expressions - both features available back to API 9 (Gingerbread) devices!

Added in API 24 is the Stream API, default method implementations and static methods for interfaces, and repeatable annotations - you’ll have to be on an API 24 devices to take advantage of those features!

Check out the documentation for all the details: https://goo.gl/h3KUPP


Thursday, June 23, 2016

Install Oracle Java8 on Linux Mint 17.3 Rosa

This video show how to Install Oracle Java8 on Linux Mint 17.3 Rosa (run on VirtualBox/Windows 10).


Enter the command in Terminal:
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer

Monday, April 11, 2016

Free book by O'Reilly - Introducing Java 8: A Quick-Start Guide to Lambdas and Streams

Introducing Java 8
A Quick-Start Guide to Lambdas and Streams
By Raoul-Gabriel Urma
Publisher: O'Reilly
Released: August 2015

Java SE 8 is perhaps the largest change to Java in its history, led by its flagship feature—lambda expressions. If you’re an experienced developer looking to adopt Java 8 at work, this short guide will walk you through all of the major changes before taking a deep dive into lambda expressions and Java 8’s other big feature: the Streams API.

Author Raoul-Gabriel Urma explains how improved code readability and support for multicore processors were the prime movers behind Java 8 features. He’ll quickly get you up to speed on new classes including CompleteableFuture and Optional, along with enhanced interfaces and the new Date and Time API. You’ll also:

  • Understand why lambda expressions are considered a kind of anonymous function
  • Learn how lambda expressions and the behavior parameterization pattern let you write flexible and concise code
  • Discover various operations and data processing patterns possible when using the Streams API
  • Use Collector recipes to write queries that are more sophisticated
  • Consider factors such as data size and the number of cores available when using streams in parallel
  • Work with a practical refactoring example to bring lambda expressions and streams into focus

Raoul-Gabriel Urma is co-author of the bestselling book Java 8 in Action (Manning). He has worked as a software engineer for Oracle’s Java Platform Group, as well as for Google’s Python team, eBay and Goldman Sachs. An instructor and frequent conference speaker, he’s currently completing a PhD in Computer Science at the University of Cambridge.

link: http://www.oreilly.com/programming/free/introducing-java-8.csp

Saturday, October 24, 2015

Install Oracle java8 on Ubuntu 15.10 via PPA


To install Oracle java8 on Ubuntu 15.10 via PPA, enter the command:
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer



Monday, August 31, 2015

Install Android Studio on Windows 10

Android Studio IDE is the official Android development IDE.


Before install, check if your system meet the System Requirements.

In my system:
OS: Windows 10
Java: JDK 8 (Refer the Java-Buddy post "Install JDK 8 on Windows 10, and set Path")

To download Android Studio IDE, visit http://developer.android.com/sdk/index.html.

By default, the Setup Wizard will create a default AVD (Android Virtual Device) for you, Nexus 5 API 23 x86. (If you encounter error of "HAXM is not working and emulator runs in emulation mode" when run Android Emulator with HAXM, refer to the next post "Install Intel x86 Emulator Accelerator (HAXM), on Android Studio/Windows 10")



After installed, I always run SDK Manager to check if any update and install the suggested packages.


Next:
Install Intel x86 Emulator Accelerator (HAXM)



Create Marshmallow Emulator in Android Studio AVD Manager




Related:
- Download and run Android Studio 2.0 Preview on Windows 10

Thursday, March 27, 2014

Watch the Java 8 Launch videos

Java 8 Launch videos are online now.  Include great tutorials in sessions of
- Java SE 8
- Java SE Embedded 8
- Java ME 8
- Internet of Things and The Enterprise

Watch it at http://www.oracle.com/events/us/en/java8/index.html.

Wednesday, March 19, 2014