How to read XML file in Java using DOM

  • 12 July 2016
  • ADM

How to read XML file in Java using DOM. 2 methods: one reading each element by the name and second parsing the entire DOMobject.


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 get date and time in Java

  • 09 May 2016
  • ADM

How to get current date and time in a specific format using Date, Calendar and SimpleDateFormat class.


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 create a table using JDBC Statement

  • 24 March 2016
  • ADM

How to create a new table from Java using JDBC Statement in simple steps: connect, get the statement, execute and close.


How to create Builder design pattern in Java

  • 03 November 2016
  • ADM

How to create Builder Design Pattern in Java using simple example and comparison with classic instantiation.