Stream Collectors.joining import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; //———————— public class YourClass { public static void main(String[] args) { List list = Arrays.asList(“a”, “b”, “c”); String result = list.stream().collect(Collectors.joining(“,”)); System.out.println(result); } } Output: a,b,c String.join import java.util.Arrays; import java.util.List; public class MyClass { public static void main(String[] args) { List list = Arrays.asList(“a”,”b”,”c”); String result […]
Update Node.js to Latest Version on Linux | Ubuntu
Update Node.js with NVM (Node Version Manager) There are many ways that can be used to update the node version on a linux system. Bu the best and the recomended would be using the Node Version Manager. 1. Update the package repository sudo apt update 2. Install NVM using either curl or wget command . […]
Access Javascript Nested objects or Attributes safely
Access Javascript Nested objects or Attributes safely It is very likely to get run time exceptions on trying to read value of undefined or null objects in Javascript. There are two ways we can solve this common development issue. The optional chaining operator, also known as the safe navigation operator, is a feature of ECMAScript […]
Most Searched Keywords in 2022
Most Searched Key Words on Google in 2022
What is ChatGPT
ChatGPT is a language model, which was created and trained by OpenAI . ChatGPT uses a type of neural network called a transformer model. This type of model is designed to process sequential data, such as natural language text, and generate output that resembles human-generated text. It does this by learning to predict the next […]
Setting SSL HTTPS on Nodejs
There are many ways that we can use to setup SSL/TLS to our Nodejs app. In this post we will forcus on tow of the main methods. Setting SSL using Private key and Full Chain pem Certificate files Mostly if you are using Linux based OS on your server , you will be mostly familier […]