PDA

View Full Version : Java Tips


Pages : 1 [2] 3

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