PDA

View Full Version : java.lang



  1. Using reflection to create, fill, and display an array
  2. Using reflection to check array type and length
  3. Object Reflection: Invoking constructor with parameters
  4. Object Reflection: Invoking methods
  5. Object Reflection: Creating new instances
  6. Object Reflection: Setting value
  7. Object Reflection: Getting field value
  8. Class Reflection: Finding super class names
  9. Class Reflection: Finding class name
  10. Class Reflection: Finding class modifiers
  11. Class Reflection: Showing methods
  12. Class Reflection: Is it an interface
  13. Class Reflection: Finding out the constructor infomation
  14. Class Reflection: Finding field infomation
  15. Class Reflection: Finding implemented interfaces
  16. Array Reflection: Multi Array Reflection
  17. Demonstration of the switch statement
  18. How to use Switch keyword
  19. Javadoc Comments Demo
  20. How to write code comments
  21. If statement demo
  22. If Else Demo
  23. Subclass definition
  24. Using final with method arguments
  25. Demonstration of a simple constructor
  26. Demonstration of break and continue keywords
  27. How to use Continue with a label
  28. How to use Continue
  29. How to use Break with a label
  30. How to use Break
  31. How to use Do While loop
  32. How to use While loop
  33. How to use subString method
  34. How to use StringBuffer class
  35. Demonstration of both constructor and ordinary method overloading
  36. Overloaded method
  37. Overloaded constructor
  38. A generic interface example
  39. A simple generic class
  40. How to create your own Exception class
  41. How to use Finally
  42. How to define constants in Java
  43. Using the bitwise operators
  44. Demonstration of the variable length arguments
  45. VarArgs Example
  46. How to use Static Imports
  47. Demonstration of printf() method
  48. Using Scanner to compute an average of the values
  49. Use Scanner to read various types of data from a file
  50. Formatting time and date
  51. Using the built-in enumeration methods
  52. Enum example
  53. How to use enum
  54. Demonstration of autobox and unbox
  55. Demonstration of the transient keyword
  56. Using Static Variables
  57. Explicit static initialization with the static clause
  58. Creating inner classes
  59. How to use Foreach on an Array
  60. Doclet that prints out all members of the class
  61. Deep Copy Test
  62. Shallow Copy Test
  63. Assert with an informative message
  64. Annotation Viewer
  65. Simple annotation
  66. Calculating trigonometric functions
  67. Calculating hyperbolic functions
  68. Conversion between polar and rectangular coordinates
  69. Using the Math Trig Methods
  70. How to beep every 5 minutes in Java
  71. Simple demonstrations of the Collections utilities
  72. How to Search a List in Java
  73. How to convert List to Array
  74. Bidirectional Traversal with ListIterator
  75. Converting array to list and sorting it
  76. Binary Tree Implementation in Java
  77. Stack data structure in Java
  78. Demonstration of Stack class in java.util package
  79. How to use Stack class in java.util package
  80. How to create a Sorted List in Java
  81. Doubly-linked list with data structure
  82. A Map implemented with ArrayLists
  83. Making a stack from a LinkedList
  84. Sorting an array of Strings
  85. How to search with a Comparator
  86. How to write your own Comparator
  87. Creating a Comparable object
  88. How to manipulate a BitSet
  89. How to use BitSet
  90. How to convert infix arithmetic expressions to postfix
  91. How to parse postfix arithmetic expressions
  92. Printing the union and instersection of two sets
  93. TreeSet Demonstration
  94. Working with HashSet and TreeSet
  95. How to use Set class
  96. Putting your own type in a Set
  97. Demonstration of heaps
  98. How to multiply two matrices
  99. How to grow an array
  100. How to sort an array
  101. How to initialize a two dimensional Array
  102. How to initialize an Array
  103. How to create multidimension arrays
  104. Creating an array of nonprimitive objects
  105. How to clone an Array
  106. Array Fill Test
  107. Array Search Test
  108. Converting an Array to a Vector
  109. Converting a Collection to an Array
  110. Timing array loop performance
  111. Using reflection to create, fill, and display an array
  112. Using reflection to check array type and length
  113. Doubling the size of an array
  114. Custom ArraySet implementation
  115. Custom ArrayMap implementation
  116. Sorting, Searching, and Inserting into a sorted array
  117. Initialization and re-assignment of arrays
  118. How to Save/Load Vector to/from file
  119. Finding elements in a vector
  120. Queue data structure
  121. How to implement Priority queue with Java
  122. Simple demonstration of HashMap
  123. Sorting Elements in a TreeMap
  124. How to use treemap
  125. Demonstrating the WeakHashMap
  126. Soft HashMap
  127. Demonstration of the Hashtable class, and an Enumeration
  128. Working with Key-Value Pairs in a Hashtable
  129. Hash table with double hashing
  130. Hash table with linear probing
  131. Hash table with separate chaining
  132. Soundex Algorithm Implementation in Java
  133. Computing prime numbers in Java
  134. Computing the area of a triangle using Heron's Formula
  135. Finding a connection between cities using least-cost search algorithm
  136. Finding a connection between cities using hill climbing
  137. Finding a connection between cities using a depth-first search
  138. Printing Fibonacci Numbers
  139. How to create a lightweight and low-security password generator
  140. How to use sleep method of the Thread class
  141. Implementation of the Producer/Consumer problem in Java
  142. How to get/set thread priority
  143. How to get thread name
  144. How to synchronize blocks instead of entire methods
  145. How to synchronize threads on an object
  146. Dining Philosophers Java Applet
  147. How to use pipes for inter-thread I/O
  148. How to create a simple deadlock
  149. Listing all threads and threadgroups in the VM
  150. How to use thread priorities
  151. How to use join() method
  152. How to use sleep() to wait for a while
  153. The safe way to stop a thread
  154. Creating a Thread using the Runnable interface
  155. How to use Java threads
  156. How to convert integer to the hexadecimal and octal number
  157. How to Shuffle a particular String
  158. How to use chained exceptions
  159. When to use –client and -server option while running a java program
  160. Tip for System Defined line separator in a Batch File
  161. How to get the User Name
  162. How to display numbers with leading zeros
  163. How to split a String using split function