Working with For Loop in Go

Unlike other languages, Go has one looping construct — the for loop. However, the for loop can handle all of your looping needs. I will show you examples of how to use the for loop to count from 1 to 10 and how to loop over an array/slice in different ways. Count From 1 to […]

Continue reading

Golang Installation and Setup On Ubuntu and POP!OS Linux

In this blog post, I will show you how to install Go on Ubuntu or POP!OS Linux. Installing GO Go binary distributions are available for all major operating system but in this blog post I will focus on Ubuntu Linux and its derivatives. Downloading GO Download the Linux distribution from Go’s official download page Extract and Copy Files […]

Continue reading

Sorting Java Collections

Sorting collections is a common task that Java developers deal with on a daily bases.  The Java Collections class provides us with two sort() methods to sort all collections that implement the List interface. Sorting Primitive Types & Strings In the example below, we will create a list with ten random integers and sort the list using the sort() method, […]

Continue reading

Iterating Over Collections In Java

Iteration is the most common operations done on a collection. For example, you may want to go through all the student grades to find who has the highest test scores. In Java we have four methods for iterating over a collection, the methods are the for loop, iterator, forEach and lambda expressions. Setup Collection Here […]

Continue reading

Using SDKMAN To Manage Java Versions

What Is SDKMAN? As Java developers, we have to work with different versions of Java from project to project. Installing different versions by hand and setting the PATH can become a real pain at times. SDKMAN is a command line tool that allows you to install different versions of Java, Gradle, Maven and more. SDKMAN also takes […]

Continue reading