How to read and write files in Java
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 convert object to / from JSON using Jackson
How to convert Java object to / from JSON string using Jackson library. Simple example including embedded object.
How to convert object to / from JSON using Gson
How to convert Java object to / from JSON string using Gson library. Simple example including embedded object.
How to format XMLGregorianCalendar
How to format XMLGregorianCalendar object output using SimpleDateFormat class in Java. Simple 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.