PDA

View Full Version : Java Tip



Pages : 1 [2] 3

  1. Listing subdirectories/files with filter
  2. Listing subdirectories/files
  3. Deleting an directory/subdirectory/files
  4. Deleting an empty directory
  5. Static function to get current working directory
  6. Removing all the instances of a given text form a String
  7. Using PersistenceManager and PersistenceManagerFactory
  8. Converting InputStream to OutputStream
  9. Uploading image using JSP
  10. Form for uploading images
  11. Using Pattern.CASE_INSENSITIVE
  12. Regex Quantifiers Example
  13. CompositeName with LDAP URL
  14. Using Quantifiers in regular expressions
  15. REGEX - predefined character classes
  16. Using SWT Text
  17. Using SWT Menu
  18. Regular expression with Unions
  19. Regular expression with Intersections
  20. Example of SWT Label
  21. Example of SWT Dialog
  22. Using SWT Canvas
  23. Using SWT Button
  24. Using SelectionAdapter
  25. Listener for SWT event
  26. SWT GridLayout
  27. Current month
  28. Calling SQL Server stored procedures
  29. Inserting file in to database
  30. Getting names of table columns
  31. Using Equalizer
  32. Using Enumeration to get items out of the session
  33. Cloning objects
  34. Windows Runtime Commands
  35. Example of RunTime class
  36. Switch statement to display the name of the month
  37. A simple DOM reader
  38. SAXBuilder example
  39. Building a document from a DOM
  40. Multiple listeners per event
  41. Using java.awt.Scrollbar
  42. Method for String to int conversion
  43. Using java.awt.Choice
  44. CapitalizeApplet Example
  45. Using java.awt.Label
  46. Aligning Labels
  47. SWT push button
  48. SWT Event Handling
  49. Swt.color_blue
  50. SWT – Display class
  51. SWT code template
  52. DecimalFormat class
  53. List of System properties
  54. Initializing property object from a file
  55. Setting and getting custom properties
  56. Listing all available Locales
  57. Sample Session Beans
  58. Session Beans (basics)
  59. Locating the home interface
  60. Sample Entity Bean
  61. Home interface for entity bean
  62. Remote interface for entity bean
  63. Container Managed Persistence
  64. Struts Form Bean with property
  65. Action class in Struts
  66. HTML tags for Struts
  67. web.xml for ActionServlet (Struts)
  68. Reading text from a URL using BufferedReader
  69. Parsing URL
  70. Converting URL to URI
  71. JSP Expressions
  72. JSP implicit objects
  73. Deletion Servlet
  74. Registration Servlet
  75. Programming block
  76. Capturing Groups using regular expressions
  77. Regular expressions quantifiers
  78. Detecting browser with JSP scriptlet
  79. Bean related actions in JSP
  80. jsp:forward action
  81. jsp:param action
  82. JSP Exception Hanling
  83. Creating tables in database using executeupdate(..)
  84. Using Savepoints
  85. javah
  86. Loading a library (for native methods)
  87. Defining a Native Method
  88. Autocommit Transactions
  89. Using PreparedStatement
  90. Using CallableStatement
  91. Initialize variables before use
  92. Naming a Class
  93. Viewing contents of JAR file
  94. Hiding the frame’s title bar
  95. Adding checkboxes on frame
  96. Making a frame not re sizable
  97. Frame close operation
  98. Custom icon for Frame
  99. Interface java.io.Externalizable
  100. String uppercase/lowercase
  101. Calling constructor of parent class from a constructor
  102. Calling constructor of same class from a constructor
  103. Differences between constructor and method
  104. Comments
  105. Compiling a class in a package from cmd
  106. Airthmetic statement shortcuts
  107. && and &
  108. Commonly used packages
  109. Static imports (Java 5 and above)
  110. Adding custom buttons - JOptionPane.showOptionDialog(...)
  111. JOptionPane - showConfirmDialog(...) options
  112. JOptionPane - message styles
  113. JOptionPane - message dialog
  114. JOptionPane - input dialog
  115. Reading/Writing files through Applet
  116. Manifest file in executable jars
  117. Using DataHandler class
  118. Using Marshaller/Unmarshaller
  119. Initializing SAXParser
  120. JFrame (Hello World)
  121. Looking for servers on ports
  122. Math Class (ceil, floor, abs)
  123. How to get NodeList from XML file
  124. Creating Hibernate HSQL connection
  125. Applets (init, start, stop, destroy)
  126. Randomly accessing files
  127. Using Filtered Streams
  128. Friendly methods
  129. transient keyword
  130. volatile variable
  131. Using threads
  132. Scheduling tasks using Threads
  133. JSP Declaration Directive
  134. Reading cookies from JSP
  135. Setting cookies in JSP
  136. Stack Trace
  137. Swing containers
  138. EventHandling code for Swing application
  139. IDL to Java conversion using idltojava
  140. Character Object
  141. Getting current user’s name
  142. Input parameter of Main method
  143. SuperClass of an Object
  144. Getting Class info
  145. Using StringCharacterIterator
  146. Getting smallest possible Double value
  147. Using interfaces with Delegation
  148. Using Delegation in Java
  149. JDBC - Exception handling
  150. PreparedStatement
  151. Getting row count from executeQuery()
  152. Connectiong to MySQL DB
  153. API for RDF
  154. Creating an ArrayList from an existing LinkedList
  155. Sorting members in Eclipse
  156. Joining lines in Eclipse
  157. Short key for getting list of opened classes in Eclipse
  158. Overridding methods in Eclipse
  159. Renaming a class in Eclipse
  160. JavaDoc (method)
  161. Bad practices - Variable Assignments
  162. Public class variable
  163. Naming conventions
  164. Comparing Strings
  165. Using Scanner class to read int value
  166. Printing command line arguments
  167. JSP Expressions
  168. Using beans in JSP
  169. JSP - session variables
  170. Arrays.toString
  171. JSP - getting value from a textfield
  172. Methods
  173. Previnting a class from being subclassed
  174. Method/Operator Overloading
  175. Garbase Collection
  176. Reserved Keywords
  177. Switch Statemet
  178. Stateful Session Bean
  179. EJBeans - Writing remote interfaces
  180. Stateless Session Bean
  181. Vectors vs ArrayList
  182. Vector containing heterogeneous objects
  183. Servlet Life Cycle
  184. Reading form inputStream and storing in ByteArray
  185. Including HTML in a JLabel
  186. HTML on Swing Components
  187. Getting Header Info
  188. Getting modification and expiration date of content
  189. Getting content type from a website
  190. Getting character set from a website
  191. Printing contents of a web page
  192. Reading bytes from InputStream
  193. Getting address of Local Machine
  194. Printing all IP address of a site
  195. Opening URLConnection
  196. Math.Random
  197. CommandListener for MIDlet List
  198. Adding List to MIDlet Display
  199. Using Alert in MIDlet
  200. Adding EXIT button on MIDlet form
  201. Displaying text box on MIDlet form
  202. Adding command buttons on MIDLet Forms
  203. Setting display in MIDlet
  204. J2ME MIDlet snippet
  205. Using java.util.Stack
  206. Using java.util.Scanner to search for a String in a String
  207. Using ava.util.Scanner
  208. Getting System Properties
  209. Getting host name/address
  210. Creating Document object for XML parsing
  211. Use of this keyword
  212. UnChecked Exception
  213. Checked Exception
  214. Getting HTML form values in Servlet
  215. Using ServletOutputStream
  216. HttpServlet
  217. Using java.util.Formatter
  218. Locale
  219. Setting currency
  220. Organising Imports - Eclipse
  221. Execution methods – Reflection
  222. Getting methods of a Class - Reflection
  223. Iterating through ArrayList - using newly introduce for loop in Java 5.0
  224. Iterating through ArrayList - traditional for loop
  225. ArrayList<type> - Generics
  226. using Iterator with Vector
  227. Converting ArrayList to Array
  228. using ListIterator with ArrayList
  229. Getting name of superclass (Example: ArithmeticException)
  230. Runtime Exceptions
  231. Defining own Exception
  232. reversing Strings
  233. substring
  234. IP to HostName
  235. Accessing a file randomly
  236. moving a file
  237. JDBC connection
  238. when objects are removed from heap
  239. setting JVM Heap sitze
  240. How to initialize array at runtime
  241. Initialize array at runtime
  242. StringTokenizer
  243. Declaring Interface
  244. StringBuffer
  245. Eclipse - shortcut to System.out.println
  246. Eclipse- jump to method definition
  247. Eclipse - comments
  248. Eclipse - jumping to method definition
  249. Is there a free scripting tool
  250. Importing classes