Advise for a fresher
Do not expect command on Java DS overnight. It is ocean, until and unless not properly approached, it leaves in a very great confusion, of course without pointers (feeling of when you lost alone in an unknown forest). It is a ocean due number of classes, and these classes are given to make your programming easy (not to confuse you). I feel the following is a better way to penetrate into DS; follow the following order of reading.
- A) General Programs
- Collections Framework
- Collections Interfaces Hierarchy
- Interface Collection
- Stack
- Generics Stack
- Vector Methods
- Vector Generics
- Vector Retrieval
- Vector Play With
- Hashtable About
- Hashtable General
- Hashtable Generics
- Hashtable Special
- Properties
- List Fundamentals
- List Methods
- List Iteration
- List Reversing Sorting
- List Unique Elements
- Queue Fundamentals
- Queue Programming
- ArrayList Introduction
- ArrayList Methods
- ArrayList Iterators
- ArrayList Operations
- ArrayList Special
- ArrayList of arrays
- Array of Array Lists
- LinkedList Tutorial
- LinkedList General
- LinkedList Special
- LinkedList Iterators
- interface Set Tutorial
- HashSet Tutorial
- HashSet General
- HashSet Operations
- interface SortedSet
- TreeSet Tutorial
- TreeSet General
- TreeSet Special
- interface Map Tutorial
- interface Map Methods
- HashMap Tutorial
- HashMap Genreral
- HashMap Iteration
- HashMap Sort
- interface SortedMap Tutorial
- TreeMap Tutorial
- TreeMap General
- TreeMap Special
B) Elements Iteration (retrieving and printing the elements)
Enumeration | Iterator |
ListIterator | Arrays foreach |
Collections foreach | Enumeration vs Iterator |
Iterator vs ListIterator |
- C) Elements sorting Customization
- interface Comparable
- Comparable Example
- interface Comparator
- Comparator Example
- Comparable vs Comparator
- D) Elements Manipulation made easy. Boon to Programmer
- Reversing elements with reverse()
- Count of same element existance with frequency()
- Replacing elements with replaceAll()
- Finding Min and Max values with min() and max()
- Sorting ArrayList with sort()
- Sorting ArrayList with Comparator
- Searching an element with binarySearch()
- Copying one list to another with copy()
- Swapping two elements with swap()
- Shuffling the elements randomly with shuffle()
- Rotating elements with rotate()
- Filling List elements with fill()
- Existence of Common Elements with disjoint()
- Adding Array to Collections classes with addAll()
- Finding Sublist Index with indexOfSubList()
- Immutable Collection with unmodifiableCollection()
- Thread-safe Collection with synchronizedCollection()
- Type-safe Collection with checkedCollection()
- Enumerated Collection with enumeration()
- Enumeration to ArrayList with list(Enumeration)
- Immutable List with nCopies()
- Singleton List with singletonList()
Would you like to know similar operations on array elements? Array elements manipulation made easy.
- E) Miscellaneous. Makes you away from confusions. Important for interviews.
- DS features added in JDK 1.5
- Vector vs ArrayList
- ArrayList vs LinkedList
- Array and ArrayList
- Set vs HashSet
- HashSet vs TreeSet
- Map vs HashMap
- Hashtable vs HashMap
- HashSet and HashMap
- HashMap vs TreeMap
- Comparable vs Comparator
- Enumeration vs Iterator
- Iterator vs ListIterator
Hi Sir,
How to personally contact you? email or phone no.
thanks
Sarfaraz
By mail. [email protected]
I want to know that java supports pointer. If yes then how ?
You will get the same affect of pointers through object assignment.
Hi,
How can we create an arraylist of our own ?
Thanks & Regards
Bikash
Hi,
I have a employee object.Using which collection class/interface we can sort the employee name in descending order ? i.e requirement is sorting in descending order by emplyee name ?
Please help with the code.
Thanks & Regards
Bikash
Use either Comparator or Comparable.
http://way2java.com/collections/comparable-vs-comparator/
Hi Sir,
Please can you update me how to read the registry using java concepts.
like example: I want to read from below:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyRegistry
“MaintenanceMode”=”FALSE”
“DatabaseQueryTimeOut”=”30”
“MaxNoOfLinesForRecording”=””
“LeanPeriodEnabled”=”FALSE”
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyRegistry\Common]
“NoOfLogFiles”=”20”
“LogFileSize”=”40”
Thanks,
Bhalchandra
Sorry, I don’t deal.