How to read XML file in Java using DOM
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
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
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
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
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
How to create Builder Design Pattern in Java using simple example and comparison with classic instantiation.
Search
Other Posts
Follow Us On