PDA

View Full Version : Java Tip



Pages : 1 [2] 3

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