Groovy String take() examples

Groovy is called Groovy for a reason - it is a factory of fun and intuitive way of programming. Case in point? The Groovy String take method is a method that is implemented because the name is intuitive, even though we can simulate it's behavior using the subtring method. But we explore here some samples on how to use Groovy String Take method.

Groovy String drop() examples

While exploring groovy langauge, I noticed two String methods take and drop. Both provide ways to get substring of a String. In this post, we discuss Groovy String drop method and ow to use it.

Groovy String reverse() examples

Groovy is fun to use because it gives utility methods out of the box without us requiring any special external library, and without needing to write out own code. Mostly are simple and very intuitive. We explore one method in this example. In this post, we will check how to use Groovy String reverse method.

String Tokenize in Groovy

In programming, tokenizing a String is a simple way of achieving lexical analysis. It is a simple way of producing parts of a String that we can process one by one. We achieve this in Java using the StringTokenizer class. Groovy has made it more convenient by providing the tokenize() method in the String class. Below are some examples on how to use tokenization of String in Groovy.

Groovy Substring

String manipulation is an important part of any general purpose programming language. For example, we may want to extract some data from a given String or text. In this case, performing Substring is very important. This post will give some ways on how we can extract Subtring in the Groovy language. And since this is Groovy, some are just very cool.

Groovy Map Examples

The trend in the software development industry is going in the direction of making things easier and simpler. This is why languages such as Groovy is getting popular as time pass by. And there has been a big surge in popularity of Groovy when Gradle became the recent standard in Build Automation System. Groovy is just hands down concise and simpler than Java and makes developer time so much more efficient. In this post, we will explore how to use Groovy Maps by providing examples for different use cases.

Convert Groovy List To String

Groovy is now getting popular with the help of the increasing user base of Gradle. Groovy language is exceptional in being a very concise and powerful language. Compared to Java, writing things just needs very short code that is human friendly and makes developers happy. One common task we deal in most generic programming language is manipulating Strings and List. Below is an example on how to convert a Groovy List to String.