How to format XMLGregorianCalendar

  • 10 May 2016
  • ADM

How to format XMLGregorianCalendar object output using SimpleDateFormat class in Java. Simple tested example.


Luhn algorithm implementation in Java

  • 26 January 2017
  • ADM

Luhn algorithm implementation in Java with example for both calculate the check digit and validate the number.


How to parse Google Search result in Java

  • 26 May 2017
  • ADM

How to parse Google Search result in Java using URLConnection and a regular expression to parse the response. Can be used to check the Google SERP position.


How to convert Inputstream to String in Java

  • 12 September 2016
  • ADM

How to convert a InputStream object to String object in Java using BufferedReader and InputStreamReader classes.


How to get free disk space in Java

  • 05 April 2016
  • ADM

How to get free disk space in Java using File.getFreeSpace(), File.getTotalSpace() and File.getUsableSpace().


How to convert byte size into human readable format in java

  • 20 May 2016
  • ADM

How to convert byte sizes into human readable format using Java. Convert from Kilobyte to Yottabyte.