Generalized Target-Type Inference in Java 1. Introduction Type Inference was introduced in Java 5 to complement the introduction of generics and was substantially expanded in following Java releases, which is also referred to as Generalized Target-Type Inference. In this tutorial, we’ll explore this concept with code samples. 2. Generics Generics… Continue Reading java-generalized-target-type-inference

Get Started with Java Java is one of the most popular programming languages, often used for building web and enterprise scale applications. This collection of tutorials will help you get started with the basic concepts in Java. Java Language Basics Before learning about classes and objects, let’s start with the… Continue Reading get-started-with-java-series

Introduction to SPF4J 1. Overview Performance testing is an activity often pushed towards the end stages of the software development cycle. We usually rely on Java profilers to help troubleshoot performance issues. In this tutorial, we’ll go through the Simple Performance Framework for Java (SPF4J). It provides us APIs that… Continue Reading spf4j

Efficient Word Frequency Calculator in Java 1. Overview In this tutorial, we’ll show various ways of implementing a word counter in Java. 2. Counter Implementations Let’s start by simply calculating the word count of words in this array: static String[] COUNTRY_NAMES = { “China”, “Australia”, “India”, “USA”, “USSR”, “UK”, “China”,… Continue Reading java-word-frequency