Tag: learn to code together
-
Introduction to Trie Data Structure
Trie is a data structure that is not so popular but is particularly useful when you have to work a lot with strings. It also has different names like a […]
-
Creating callback functions in Java
If you are familiar with some event-driven languages such as JavaScript, especially the ES6 version or later, you probably have done some work with callback functions all the time. By […]
-
Why do you need to override equals and hashCode methods in Java?
If you have used some data structures such as a hash map or a hash set for storing your custom object, you probably have to write your own implementation of […]
-
Frequently used git commands
Have you just landed your dream job as a programmer? Congrats! We can have different backgrounds and work on different tech stacks. However, no matter which technologies you use, working […]
-
Building a Web Development PC
It’s no secret that web developers have to meet certain computer specifications if they want to do their work efficiently. For example, the Digital Hacker’s guide suggests a RAM that’s at least […]
-
Understanding Method References in Java
Before Java 8, to provide an implementation for an interface, we need either to create a concrete class that implements this interface or, more concisely we can, use an anonymous […]
-
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 […]