IBM Java Dev.

Subscribe to IBM Java Dev. feed IBM Java Dev.
The latest content from IBM developerWorks
Updated: 5 hours 17 min ago

Java 8 idioms: Why the perfect lambda expression is just one line

Wed, 2017-08-02 07:00
Short, concise lambda expressions support code readability, which is one of the key benefits of programming in the functional style. In addition to being hard to read, multiline lambdas are also hard to test and reuse, which can lead to duplication of effort and poor code quality. In this installment, learn to write single-line lambdas for code that is easier to read, test, and reuse.
Categories: Java

Refactoring to microservices, Part 1: What to consider when migrating from a monolith

Wed, 2017-07-26 07:00
Microservices are taking the development world by storm. In this 3-part series, we'll cover why they matter, what factors to consider in planning your approach to microservices, the role of data factoring, and a step-by-step migration process. Part 1 introduces microservices and discusses considerations for refactoring your applications to take advantage of a microservices architecture.
Categories: Java

Minecraft and Bluemix, Part 1: Running Minecraft servers within Docker

Wed, 2017-07-19 07:00
In this tutorial series, you'll learn how to use Docker, Eclipse, and Bluemix to develop, extend, and host your own Minehttp://www.ibm.com/developerworks/i/twitterdw-26796-minecraftseries.jpgcraft servers. Find out how to use Eclipse to build Minecraft plugins, test them locally using Docker, and use Bluemix to host your Docker containers on the Internet. You'll also harness the power of IBM Watson from within Minecraft for more educational and interactive game play. In Part 1, you'll set up your local Minecraft and Docker development environment, and see the power of Docker for building custom servers for Minecraft. You'll even get started playing with Minecraft on your own locally hosted server!
Categories: Java

Minecraft and Bluemix, Part 2: Building plugins for Minecraft with Docker and Eclipse

Wed, 2017-07-19 07:00
In this tutorial series, you'll learn how to use Docker, Eclipse, and Bluemix to develop, extend, and host your own Minecraft servers. Find out how to use Eclipse to build Minecraft plugins, test them locally using Docker, and use Bluemix to host your Docker containers on the Internet. You'll also harness the power of IBM Watson from within Minecraft for more educational and interactive game play. In Part 2, you'll set up your local development environment in Eclipse, then develop, build, and export your own server-side Minecraft plugin into a local Docker image.
Categories: Java

Sample code: Analyze text with the Watson Personality Insights service

Tue, 2017-07-18 07:00
This code shows you how to use the Java API for the Watson Personality Insights service. Given some text, Watson analyzes the openness, conscientiousness, extraversion, agreeableness, emotional range, and needs of the speaker.
Categories: Java

Sample code: Identify the context of natural language with the Watson Natural Language Classifier service

Tue, 2017-07-18 07:00
This code shows you how to use the node.js API for the Watson natural language classification service. Given some text and a context, Watson analyzes the text and returns a list of categories relevant to that text.
Categories: Java

Sample code: Translate natural language with the Watson Language Translator service

Tue, 2017-07-18 07:00
This code shows you how to use the Java API for the Watson language translator service. Given some text, a source language, and a target language, Watson translates that text and returns one or more translations to you.
Categories: Java

Sample code: Identify the context of natural language with the Watson Natural Language Classifier service

Tue, 2017-07-18 07:00
This code shows you how to use the Java API for the Watson natural language classification service. Given some text and a context, Watson analyzes the text and returns a list of categories relevant to that text.
Categories: Java

Introducing JUnit 5, Part 1: The JUnit 5 Jupiter API

Thu, 2017-07-13 07:00
If you've been on the fence about upgrading to the new JUnit 5, this tutorial should convince you. Get started with the JUnit Jupiter API and the new annotations, assertions, and assumptions that are about to rock your world.
Categories: Java

Introducing JUnit 5, Part 2: JUnit 5 Vintage and the JUnit Jupiter Extension Model

Thu, 2017-07-13 07:00
Find out how JUnit Vintage has you covered for backward compatibility with older versions of JUnit, then get started with JUnit Jupiter extensions for parameter injection, paramaterized tests, dynamic tests, and custom annotations in the new JUnit 5.
Categories: Java

Revitalize your Java EE app with IBM Bluemix services

Wed, 2017-07-12 07:00
Migrate existing applications to IBM Bluemix services such as SQLDB, Session Cache, and Auto-Scaling. The sample application you will work with is CloudTrader, a new app created from a ten-year-old day trading application.
Categories: Java

Sample code: Identify the tone of written text with the Watson Tone Analysis service

Tue, 2017-07-11 07:00
This code shows you how to use the Java API for the Watson tone analysis service. Given some text, Watson evaluates the tone, looking for qualities such as the speaker's levels of anger, disgust, joy, fear, and sadness.
Categories: Java

Sample code: Recognize and identify faces in an image with the Watson Visual Recognition service

Mon, 2017-07-10 07:00
This code shows you how to use the node.js API for the Watson Visual Recognition service. Given an image, Watson looks for faces in that image and attempts to recognize each of those faces.
Categories: Java

Sample code: Identify the tone of written text with the Watson Tone Analyzer service

Mon, 2017-07-10 07:00
This code shows you how to use the node.js API for the Watson Tone Analyzer service. Given some text, Watson evaluates the tone, looking for qualities such as the speaker's levels of anger, disgust, joy, fear, and sadness.
Categories: Java

Sample code: Analyze text with the Watson Personality Insights service

Mon, 2017-07-10 07:00
This code shows you how to use the node.js API for the Watson Personality Insights service. Given some text, Watson analyzes the openness, conscientiousness, extraversion, agreeableness, emotional range, and needs of the speaker.
Categories: Java

Sample code: Translate natural language with the Watson Language Translator service

Mon, 2017-07-10 07:00
This code shows you how to use the node.js API for the Watson Language Translator service. Given some text, a source language, and a target language, Watson translates that text and returns one or more translations to you.
Categories: Java

Sample code: Identify objects in an image with the Watson Visual Recognition service

Mon, 2017-07-10 07:00
This code shows you how to use the node.js API for the Watson Visual Recognition service. Given an image, Watson attempts to identify objects in that image.
Categories: Java

Java 8 idioms: An alternative to passing through

Fri, 2017-07-07 07:00
Pass-through lambda expressions come in a few varieties, but they are almost always more trouble than they're worth. Learn how to identify common varieties of pass-throughs in your code, then see what happens when you replace each one with a simple and expressive method reference.
Categories: Java

Refactoring to microservices, Part 3: Roadmap to microservices adoption

Wed, 2017-06-21 06:00
Microservices are taking the development world by storm. In this 3-part series, "Refactoring to microservices," we'll cover why they matter, what factors to consider in planning your approach to microservices, the role of data factoring, and a step-by-step migration process. Part 3 lays out a roadmap for transforming your applications from a monolith to a set of microservices.
Categories: Java

Java 8 idioms: In praise of helpful coding

Tue, 2017-05-30 06:00
A Java 8 convention for function composition could improve not only your code, but your relationship with other developers.
Categories: Java

Pages