General Java Tutorials


These tutorials focus on general tasks that may be experienced when working with the Java programming language.
  1. What is a JavaBean?
  2. String versus StringBuffer
  3. How do I list System properties?
  4. How do I list System properties alphabetically?
  5. How do I set System properties?
  6. How do I convert a web page to a String?
  7. How do I convert web page content without tags to a String?
  8. How do I copy properties from one bean to another?
  9. How do I run another application from Java?
  10. How do I accept text input in a console application?
  11. What's a quick way to output the values in an array?
  12. How do I send an email in Java?
  13. How do I receive email in Java?
  14. How do I pass multiple values through a parameter using bitwise operations?
  15. How do I use a host name to look up an IP address?
  16. How do I encode URL parameters?
  17. How do I decode URL strings?
  18. How do I write a server socket that can handle input and output?
  19. How do I make a socket connection to a server?
  20. How do I connect to a URL using Basic authentication?
  21. How do I create a Login Module?
  22. Should I update my MessageDigest with byte arrays or one byte at a time?
  23. How do I generate an MD5 digest for a web page?
  24. How do I convert a byte array to hex?
  25. How do I generate a random int in Java?
  26. How do I sort an array of objects with a Comparator?
  27. How do I display all available locales?
  28. How do I set the default locale?
  29. How do I set the default locale via System properties?
  30. How do I use locales and resource bundles to internationalize my application?
  31. How do I use NumberFormat to format doubles?
  32. How do I use NumberFormat to format currencies?
  33. How do I use NumberFormat to format a percent?
  34. How do I display the currency for a locale?
  35. How do I query a Whois server using a socket?
  36. How do I query a Whois server using a socket from names in a text file?
  37. How do I query the NIST Internet Time Service using the Network Time Protocol?
  38. How do I query a Whois server using the Apache Commons Net library?
  39. What's an easy way to access System Property information?
  40. What's an easy way to get the user directory and user home directory?
  41. How do I monitor times using a StopWatch?
  42. How do I copy a String to the clipboard?
  43. How do I get a String from the clipboard?
  44. How do I convert an array to a list?
  45. How do I convert a list to an array?
  46. How do I display the environment variables?
  47. How do I display Java bytecode?
  48. Do Java methods use pass-by-reference or pass-by-value?
  49. How do I use the break and continue statements?
  50. What's the difference between a checked and an unchecked exception?
  51. How do I chain exceptions?
  52. How do I enable assertions?
  53. How do I generate an MD5 digest for a String?
  54. How do I sort a collection or array of strings?
  55. How do I convert a JavaBean to an XML String using XMLEncoder?
  56. How do I find the max and min values of primitive types?
  57. How do I save an image from a URL to a file?
  58. How do I determine the system's available fonts?
  59. How do I perform a deep clone using Serializable?
  60. How do I create a thread in Java?
  61. How do I determine if a thread is alive or not?
  62. How do I identify a thread?
  63. How do I use Thread's join method?
  64. How do I use a synchronized block in a static method?
  65. StringBuffer versus StringBuilder
  66. How do I synchronize a List or other Collection in Java?
  67. How do I use the wait() and notify() methods?
  68. How do I convert Chinese characters to their Latin equivalents?
  69. What are the system Transliterators available with ICU4J?