We can convert enumeration to arraylist in java with the help list() method of Collections. package javaproficeincy; import java.util.Collections; import
Continue readingCategory: java examples
How Find out duplicate number between 1 to N numbers – Java Program
We have numbers from 1 to n and one number is duplicate. Now we will find out duplicate number in
Continue readingHow to convert binary to decimal number – Java Program
In this example we will convert binary to decimal using java. We will use this logic 11 ==>> 1*2^1+1*2^0
Continue readingMethod Overriding Example – Java Program
package com.javaproficiency; class Y { void display(){ System.out.println(” Y is called”); } } public class X extends Y{ void display(){
Continue readingHow to Sort the String using string Method In java
Java have a lot of method for string operations. We can sort a string by convert in to array of
Continue readingObject Cloning in java example?
package com.javavogue; public class Emp implements Cloneable { //Object Cloning in java example? int id; String name; public Emp(int id,
Continue readingReverse a Number in Java
In this program we will reverse a number in java using for loop , while loop and recursion .Reversing a
Continue readingHow to Remove List From Vector
import java.util.ArrayList; import java.util.List; import java.util.Vector; public class RemoveList { public static void main(String[] args) { Vector<String> vector = new
Continue reading