With a lot of theory behind us, let's write a real Java program. We will write a simple standalone web service that will count the frequency of each character that was used in the passed input string and return this in a JSON dictionary. We will use the Gradle build tool to automatically fetch dependencies from the internet and then build and run the project. At the coding stage of the backend class, we will use a test-driven approach and write unit tests along the way. In every step, from the coding stage to running the final web service, we will use Eclipse IDE. In the end, we'll discuss various shortcuts to ensure you are as productive as possible. We'll cover the following topics:
- Configuring Eclipse IDE
- Creating a new Gradle-based project in Eclipse IDE
- Modifying the Gradle build script
- Building the project
- Coding the backend class
- Creating...