Tag: javaProgram

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 »

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 »

Program to print rectangle pattern with star and hashes – Java


Here we are going to show you how you can draw a pattern with stars (*) and hashes (#). If you know how to draw a triangle star pattern, you can directly skip to the end of the post. So…

Read More »