Home » java

Extract left and rightmost n characters of a string – Java


In this post, we are going to see how to extract left and rightmost ‘n’ characters from a string given by the user.  We are going to see how it’s done by a simple program in Java. In this program,…

Read More »

Convert date format – Android – Java

In this post, we are going to learn how to convert the date format in Android or Java. Suppose the date is 2017-11-30. We will convert it into 30 Nov 2017 or DD MMM YYYY. We are going…

Read More »

Sort numbers in ascending order – Java Program


Sort array values in ascending order using Bubble Sort Sorting is an operation of arranging values in a systematic order. It may be in ascending order or in descending order. Here in this program, we are going to…

Read More »

Calculate simple interest – Java Program


In this post, we are going to see how to calculate simple interest using Java. But before that, I am going to describe what simple interest is. So those of you already know what a simple interest is,…

Read More »