- Using reflection to create, fill, and display an array
- Using reflection to check array type and length
- Object Reflection: Invoking constructor with parameters
- Object Reflection: Invoking methods
- Object Reflection: Creating new instances
- Object Reflection: Setting value
- Object Reflection: Getting field value
- Class Reflection: Finding super class names
- Class Reflection: Finding class name
- Class Reflection: Finding class modifiers
- Class Reflection: Showing methods
- Class Reflection: Is it an interface
- Class Reflection: Finding out the constructor infomation
- Class Reflection: Finding field infomation
- Class Reflection: Finding implemented interfaces
- Array Reflection: Multi Array Reflection
- Demonstration of the switch statement
- How to use Switch keyword
- Javadoc Comments Demo
- How to write code comments
- If statement demo
- If Else Demo
- Subclass definition
- Using final with method arguments
- Demonstration of a simple constructor
- Demonstration of break and continue keywords
- How to use Continue with a label
- How to use Continue
- How to use Break with a label
- How to use Break
- How to use Do While loop
- How to use While loop
- How to use subString method
- How to use StringBuffer class
- Demonstration of both constructor and ordinary method overloading
- Overloaded method
- Overloaded constructor
- A generic interface example
- A simple generic class
- How to create your own Exception class
- How to use Finally
- How to define constants in Java
- Using the bitwise operators
- Demonstration of the variable length arguments
- VarArgs Example
- How to use Static Imports
- Demonstration of printf() method
- Using Scanner to compute an average of the values
- Use Scanner to read various types of data from a file
- Formatting time and date
- Using the built-in enumeration methods
- Enum example
- How to use enum
- Demonstration of autobox and unbox
- Demonstration of the transient keyword
- Using Static Variables
- Explicit static initialization with the static clause
- Creating inner classes
- How to use Foreach on an Array
- Doclet that prints out all members of the class
- Deep Copy Test
- Shallow Copy Test
- Assert with an informative message
- Annotation Viewer
- Simple annotation
- Calculating trigonometric functions
- Calculating hyperbolic functions
- Conversion between polar and rectangular coordinates
- Using the Math Trig Methods
- How to beep every 5 minutes in Java
- Simple demonstrations of the Collections utilities
- How to Search a List in Java
- How to convert List to Array
- Bidirectional Traversal with ListIterator
- Converting array to list and sorting it
- Binary Tree Implementation in Java
- Stack data structure in Java
- Demonstration of Stack class in java.util package
- How to use Stack class in java.util package
- How to create a Sorted List in Java
- Doubly-linked list with data structure
- A Map implemented with ArrayLists
- Making a stack from a LinkedList
- Sorting an array of Strings
- How to search with a Comparator
- How to write your own Comparator
- Creating a Comparable object
- How to manipulate a BitSet
- How to use BitSet
- How to convert infix arithmetic expressions to postfix
- How to parse postfix arithmetic expressions
- Printing the union and instersection of two sets
- TreeSet Demonstration
- Working with HashSet and TreeSet
- How to use Set class
- Putting your own type in a Set
- Demonstration of heaps
- How to multiply two matrices
- How to grow an array
- How to sort an array
- How to initialize a two dimensional Array
- How to initialize an Array
- How to create multidimension arrays
- Creating an array of nonprimitive objects
- How to clone an Array
- Array Fill Test
- Array Search Test
- Converting an Array to a Vector
- Converting a Collection to an Array
- Timing array loop performance
- Using reflection to create, fill, and display an array
- Using reflection to check array type and length
- Doubling the size of an array
- Custom ArraySet implementation
- Custom ArrayMap implementation
- Sorting, Searching, and Inserting into a sorted array
- Initialization and re-assignment of arrays
- How to Save/Load Vector to/from file
- Finding elements in a vector
- Queue data structure
- How to implement Priority queue with Java
- Simple demonstration of HashMap
- Sorting Elements in a TreeMap
- How to use treemap
- Demonstrating the WeakHashMap
- Soft HashMap
- Demonstration of the Hashtable class, and an Enumeration
- Working with Key-Value Pairs in a Hashtable
- Hash table with double hashing
- Hash table with linear probing
- Hash table with separate chaining
- Soundex Algorithm Implementation in Java
- Computing prime numbers in Java
- Computing the area of a triangle using Heron's Formula
- Finding a connection between cities using least-cost search algorithm
- Finding a connection between cities using hill climbing
- Finding a connection between cities using a depth-first search
- Printing Fibonacci Numbers
- How to create a lightweight and low-security password generator
- How to use sleep method of the Thread class
- Implementation of the Producer/Consumer problem in Java
- How to get/set thread priority
- How to get thread name
- How to synchronize blocks instead of entire methods
- How to synchronize threads on an object
- Dining Philosophers Java Applet
- How to use pipes for inter-thread I/O
- How to create a simple deadlock
- Listing all threads and threadgroups in the VM
- How to use thread priorities
- How to use join() method
- How to use sleep() to wait for a while
- The safe way to stop a thread
- Creating a Thread using the Runnable interface
- How to use Java threads
- How to convert integer to the hexadecimal and octal number
- How to Shuffle a particular String
- How to use chained exceptions
- When to use –client and -server option while running a java program
- Tip for System Defined line separator in a Batch File
- How to get the User Name
- How to display numbers with leading zeros
- How to split a String using split function