Month: October 2020
-
A Gentle Guide to Socket in Java
What is Socket? A socket is an interface to send and receive data in two programs on the network in a bidirectional manner. In other words, a socket represent one […]
-
How to configure Tomcat Server to Run Web Application on IntelliJ IDEA
In this article, we are going to learn how to configure the Tomcat server to run a simple “Hello World” application on the web browser with JSP and Servlet (i.e […]
-
What is tail recursion?
In many functional programming languages such as Haskell or Scala, tail recursion is an interesting feature in which a recursive function calls itself as the last action. For example, we […]
-
Different ways to Iterate any Map in Java
1. Using entrySet() The Map.entrySet() returns a collection view Set<Map.Entry<K, V>> of the mappings in this map. To iterate over a map, we can use the getKey() method to get […]