Java Enum example with advantages and disadvantages
Enum feature is originally inherent from C and C++ language. It is also known as enumeration. What is Enum? An enum type is a special data type that enables for a variable to be a set of predefined values. The variable must be...
PrimeFaces hello world with step by step guidance
Are you new to Primefaces? Are you wondering how it works and how to getting started? You’re at the right place. We’re launching a series of Primefaces guides for beginners. Welcome to the Java Tutorial Spot! So let’s start...
Java Copy File with 5 different ways
Before JDK 7 there is didn’t any readymade function to copy file quickly, and you have to create manually file operation like you convert a file into bytes stream using FileInputStream, and then you write those bytes stream into...
4 ways to Convert String to int in Java
In Java, you can convert String to int has many way are listed below 1. Using Integer.parseInt() for example you have one string is called “12” now we convert it into primitive int. String numberStr = "12"; int result...
What is elasticsearch and how to configure step by step
What is Elasticsearch ? First, we need to know what is Elasticsearch. It is a very highly-scalable document storage engine that specializes in text base search. It’s built on top of Lucene (full-featured text search engine...