Codekru

Java String substring() method with examples

The Java String substring() method returns a part of the String and there are two overloaded substring() methods in Java. public String substring(int beginIndex) public String substring(int beginIndex, int endIndex) Let’s look at both of the methods one by one public String substring(int beginIndex) What does it do? It takes an index into the argument […]

Java String substring() method with examples Read More »

GoLang keywords

Keywords or reserved keywords in a language are words that cannot be used for any purpose other than they are intended to. So, we cannot use them as the variable name or any other identifiers. There are 25 such keywords in Go Language break default func interface select case defer go map struct chane else

GoLang keywords Read More »

Golang Data Types

Go is a statically typed language, which means it knows what types of values are, even before our program runs. Functions expect their arguments to be of a particular data type, and so do their return values. So, if you use any wrong type value in the wrong place, Go will let you know about

Golang Data Types Read More »