Java Programming Tutorials

Java programming tutorials with many code examples!

Java 8 range of numbers

How to generate in Java 8 range of numbers? This is practical problem, often met when writing tests. In this post we’ll cover fast implementation, comfortable, and flexible with Java 8 Streams!

Read More

Share with the World!

Java int to String

In Java int to String conversion can be done in a different ways and converted String can be in different formats. In this post we’ll show on examples how to convert them.

Read More

Share with the World!

Java String to int

In Java String to int conversion can be done in a few different ways. In this post we’ll show them and describe differences.

Read More

Share with the World!

Java Reverse String in 2 ways

Java Reverse String in 2 ways

Java String doesn’t have reverse method, so it may not be immediately apparent how to reverse a string in Java. Here are two ways do do it.

Read More

Share with the World!

Java unchecked warnings

Java unchecked warnings

In this tutorial we’re going to show how to eliminate unchecked warnings that occur frequently when mixing Java Generics with legacy code.

Read More

Share with the World!

Java Initialization order

Java Initialization order

In this tutorial we’re going to show what is initialization order of fields (instance and static) in Java when JVM loads a class.

Read More

Share with the World!

Java Properties load from XML

Problem:

How to load Properties in Java? Properties class has methods to load properties from different sources – InputStream, Reader, and XML file. Here’s an example of Properties.loadFromXML(InputStream).

Read More

Share with the World!

Java Properties load

Problem:

How to load Properties in Java? Properties class has methods to load properties from different sources – InputStream, Reader, and XML file. Here’s an example of Properties.load(InputStream).

Read More

Share with the World!

Java Properties store as XML

Problem:

How to store Java Properties as XML? It turns out that it’s not only possible, but also easy with the Properties class as you can see in the example in this post.

Read More

Share with the World!
Pages:123