Author name: Neeraj Mishra

Java Program to Calculate Simple Interest

Here you will get java program to calculate simple interest. We can calculate simple interest in java by using following formula. Simple Interest = (Principle x Rate x Time) / 100 Also Read: Java Program to Calculate Compound Interest

  Output Enter principle: 1000 Enter rate: 3 Enter time: 2 Simple Interest = 60.0

Difference between Array and ArrayList in Java

Here you will learn about difference between array and arraylist in java. Both array and arraylist are most important and frequently used data structure in java. Below I have discussed about various differences between them.   Difference between Array and ArrayList in Java Property Array ArrayList Size Array is fixed in size. Once declared, its …

Difference between Array and ArrayList in Java Read More »

How to Split String in Java with Example

Here you will learn how to split string in java. We can split string in Java using split() method of java.lang.String class. It takes a regular expression as an argument and returns an array of strings. Syntax:

  Split String in Java Example Below program will split the string by space.

  Output …

How to Split String in Java with Example Read More »