Repeating a string using StringBuilder

Suppose you have the string ‘qwe’ and you need to repeat string ‘n’ times. Here’s how to do it with StringBuilder: Using StringBuilder and loop

Read More

How to parse JSON in Java

Google GSON library Let’s assume you have a class Book  with just a title.

Create maven project and add dependencies.

Then write this code to transform JSON into class: …

Read More