Java Programming Tutorials

Java programming tutorials with many code examples!

Java safe List

Problem:

Source of Java ClassCastException sometimes can be hard to find. In such situation type safe List may be really helpful. In this tutorial you will learn how to find ClassCastException using Java type safe List!

Read More

Share with the World!

Java binary search comparator

Problem:

Java Binary Search with Comparator is very flexible method to search for elements of any type. In this tutorial you will learn how to use binary search in Java with own Comparator!

Read More

Share with the World!

Java binary search

Problem:

Java binary search is very fast way to find an element in a sorted collection of elements or find a place where it should be inserted. In this tutorial you will learn how to effectively use binary search in Java!

Read More

Share with the World!

Java Deque Stack Queue

Problem:

In Java Deque can be used as LIFO Queue, which is a Stack. In this Java tutorial we’ll explain how it works and show how to use JDK API effectively!

Read More

Share with the World!

Bash if else

Problem:

Bash if else is the most fundamental control flow statement used almost in every script. In the following Bash tutorial we show how to use if-else on examples!

Read More

Share with the World!

Java add array to list

Problem:

In Java there is a couple of ways to add an array of items to a collection. In the following examples we’ll cover a few of them.

Read More

Share with the World!

Bash until loop

Problem:

Bash until loop is another basic construct occurring in many programming languages. It is similar to the while loop, but… different. Learn how!

Read More

Share with the World!

Java try with resources

Problem:

Java 7 finally has shipped try with resources construct that simplifies very common use case when developer had to open some resource and then close in finally block after usage. try with resources makes it very simple. Learn how!

Read More

Share with the World!