3:29 pm - Tuesday June 20, 8237

Author Archives: Mathan Lal

Currency in java example program for get Currency Code()

Interface in Package Java.util

Currency

Classes in Package Java.util

Currency

Classes in Package Java.util

Currency

Collections Example program for checkedSet(Set s, Class type)

/** *@author: candidjava.com *@description: Collections Example program for checkedSet(Set s, Class type) */ import java.util.HashSet; import java.util.Set; import java.util.Collections; public class Sets1 { public static void...

Collections Example program for indexOfSubList(List source, List target)

/** @description:Collections Example program for indexOfSubList(List Source, List target) @author:candidjava.com */ import java.util.List; import java.util.Collections; import java.util.Arrays; public class CollectionsIndexOfSubList...

Collections Example program for frequency(Collection c, Object o)

@author:Candid @discription:Collections Example program for frequency(Collection c, Object o) **/ import java.util.List; import java.util.ArrayList; import java.util.Collections; public class Freq { public static void main(String...

Collections example program for checkedCollection(Collection c, Class type)

/*program :Collections Example program for enumeration(Collection c) author  :"candid" date    :29.10.12*/ import java.awt.List; import java.util.ArrayList; import java.util.Collections; import java.util.Enumeration; public...

Collections example program forbinarySearch(List> list, T key)

import java.util.List; public class Bsearch { public static void main(String args[]) { String simpsons[] = { "Ball", "House", "Lime", "Moon", "Head", "Mani", "Rabbit"...

Collections example programs

Collections example program forbinarySearch(List> list, T key) ______________________________________________________________________________________________ Collections example program for Checked Collection(Collection c,Class type) ____________________________________________________________ Collections...

Collections example program for asLifoQueue(Deque deque)

/** @description:Collections Example program for asLifoQueue(Deque deque) @author:candidjava.com */ import java.util.ArrayDeque; import java.util.Collections; import java.util.Deque; import java.util.Queue; public class CollectionAsLifoQueue...

Collection Example program

Collections example program for asLifoQueue(Deque deque) _______________________________________________________________________________________________________________________ BACK

Hashtable Example program for values()

/** *@author:candidjava.com *@description:hash table for values */ import java.util.Hashtable; public class Hashtable { public static void main(String[] args){ Hashtable h=new Hashtable(); h.put(2,"3"); //to...

Hashtable Example program for values()

*@author:candidjava.com *@description:hash table for values */ import java.util.Hashtable; public class Hashtable { public static void main(String[] args){ Hashtable h=new Hashtable(); h.put(2,"3"); //to add first value h.put(3,"4"); //to...

Hashtable Example program for rehash()

*@Author:CandidJava.com</span> *@Description:automatically increase the capacity of the hashtable */ import java.util.Hashtable; public class ReHash1 { public static void main(String args[]) {//rehash method is automatically called Hashtable...

Hashtable Example program for putAll(Map t)

// Hashtable Example program for putAll(Map t) /** @author: candidjava.com @description: This method is used to copy all of the mapping elements to the specified  Hashtable. */ import java.util.*; class Case { public static void main(String[]...

Hashtable Example program for containsKey(Object key)

/** *@author:kingsley *@description:Hashtable Example program for ContainsKey */ import java.util.Hashtable; class HashTableExam { public static void main ( String[] args ) { Hashtable ht=new Hashtable(); // creating...

Hashtable Example program for clone()

// Hashtable Example program for clone() /** @author: candidjava.com @description: This program gives the copy of the existing Hashtable. */ import java.util.*; public class Clone { public static void main(String[] args) { Hashtable...

LinkedList Example Program for toArray(T[] a)

//program name: LinkedList Example Program for toArray(T[] a) /** @ author:candidjava.com @description: Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of...

LinkedList Example Program for toArray()

/** *LinkedList Example Program for toArray() * @author   candidjava.com * @description:  Returns an array containing all of the elements in this list in proper sequence (from first to last element). */ import java.util.*; public...