Java variable types

A variable in Java is a name of a memory location that can hold some value. Variables provide an easy way for programmers to access memory locations.

Java 9 Strings

String in Java 9 is a data type just like integer and floating point, but it is used to represent text rather than numbers or a single character.

Java Hello World – How to Run

In this article we will show you how to start programming in Java from scratch. We will use Java 9 for this beginner tutorial and write and run a “Hello, World!” example program on your computer.

Read and write to spreadsheet in Java

I was writing an algorithm that would run and produce some results. These results should have been stored some place and retrieved during next program run. New values would then be added to the resulting list. The program needed to remember all the results from all run.

How to sort a Set in Java example

There are different versions of Java available with different ways to sort collections of objects. We will be showing examples of how to sort a set of objects or strings alphabetically in Java 8, Java 7 and older versions using comparator.

Too many functions in Java code

Many java developers follow the principles of clean code. But can it be too much? I have recently reviewed code that had almost a dozen of wrappers around its private members. When is code readable enough?