How to read and write files in Java

  • 17 June 2016
  • ADM

How to read and write files in Java using BufferedReader and BufferedWriter. The example highlights the classic resource release and try-with-resource approach.


How to read CSV file in Java

  • 27 May 2016
  • ADM

How to parse CSV file in Java and display all the value.The solution treats the case when a column contains the delimiter and the double quote character.


Split URL into components using regex

  • 23 May 2016
  • ADM

Split URL into components (protocol, domain, port and uri) using regex in Java. Simple and tested example.


How to read and write JSON with json-simple

  • 21 April 2016
  • ADM

How to read and write JSON with json-simple library. Full example how to create an object, write it to a file, read it and use it.


How to install Apache Ant on Mac OS X

  • 24 May 2016
  • ADM

How to install Apache Ant on Mac OS X in 4 easy steps:download, extract, move to destination folder and edit the environment variables.


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.