IBM Java Dev.

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

Java 8 idioms: Java knows your type

Wed, 2017-10-11 06:00
The Java compiler is more than capable of inferring type, so why not let it? Learn how to use type inference in lambda expressions, and get tips for improving parameter naming.
Categories: Java

What's new in Java EE 8

Tue, 2017-09-26 07:00
The next edition of the Java enterprise platform is built for the cloud and reactive programming, and will shape enterprise application development for years to come. Get your first look at new APIs and upgrades for Java enterprise security, JSON binding, HTTP/2 server push, and more.
Categories: Java

Minecraft and Bluemix, Part 3: Running Spigot servers in Kubernetes

Wed, 2017-09-20 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 3, you learn how to take the plugin that you built in Part 2 to the next level -- by getting it running on the web in Bluemix.
Categories: Java

What's new in Spring Framework 5

Tue, 2017-09-19 07:00
Spring Framework 5.0 will change how developers understand and build Spring-based applications for years to come. Find out how Spring 5 integrates functional and reactive programming models into its core architecture, updates major dependencies, and trades legacy baggage for notable performance boosts--all while retaining that familiar Spring Framework look-and-feel.
Categories: Java

5 things you didn't know about ...: Apache Maven plugins

Mon, 2017-09-11 07:00
Can’t get enough of Maven? Neither can we! Learn how plugin goals map to the Maven lifecycle, then get started with four plugins that will take your projects to the next level, including Maven Site from GitHub and Maven Cargo from Codehaus.
Categories: Java

Java 8 idioms: Functional interfaces

Fri, 2017-09-08 07:00
In Java 8, lambda expressions are treated as a type of functional interface. Learn how this design decision supports backward compatibility with older versions of the language, then see examples of both custom and built-in functional interfaces in a Java program. Find out why using built-in interfaces is usually optimal, even in cases where a custom interface might seem more obvious.
Categories: Java

Introduction to Java programming, Part 1: Java language basics

Thu, 2017-08-24 07:00
Get an introduction to the structure, syntax, and programming paradigm of the Java language and platform in this two-part tutorial. Learn the Java syntax that youre most likely to encounter professionally and Java programming idioms you can use to build robust, maintainable Java applications. In Part 1, master the essentials of object-oriented programming on the Java platform, including fundamental Java syntax. Get started with creating Java objects and adding behavior to them, and conclude with a summary of Java coding best practices.
Categories: Java

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

Pages