The following code snippet find Equilibrium Index of an Array in java. class IndexEquilibrium { int findIndexEquilibrium(int A[], int n)
Continue readingCategory: Java
Java – GMT to IST Conversion
The following code snippet convert GMT to IST in java. import java.util.*; import java.io.*; import java.text.*; public class GmtToIstConversion
Continue readingJAVA – Convert GMT to EST
The following code snippet convert GMT to EST in java. import java.util.*; import java.io.*; import java.text.*; public class GmtToEstConversion {
Continue readingGallon to liter conversion in java
To convert Gallon to liter we are using a formula “liter = gallon * 3.7854118“. Java Program to covert Gallon to
Continue readingJava Program To Convert Inches To Metres
To convert Inches To Meters we are using a formula “meters = inches * 0.0254“. Convert Inches To Metres In
Continue readingJava – Program to find the number of Days between two Dates
We have dates in the program as strings. We first parse them into dates and then find the difference between
Continue readingJava Program to Find Duplicate Characters in a String
This program going to find out the number of duplicate characters in the given String. In this program we are
Continue readingStack Class in Java
Stack:- It is the child class of vector contains only one constructor Stack s = new Stack(); Methods of
Continue readingVector In Java
The underlying data structure is re-sizable array or growable array. Insertion order is preserved. Duplicate objects are allowed Null insertion
Continue readingLinkedList in Java
The Underlying data structure is double Linked List. Insertion order is reserved Duplicate objects are allowed Heterogeneous objects are allowed
Continue reading