1+1 is just a convenient way of writing 1.plus(1). This is achieved by class
In this article I will introduce you to exception handling. In the previous articles in this series we use exception handling to cover some rare exception cases (remember the Guess the Number game?) and now it is time to explain how to do it in your own application — and when to do it.
We haven’t used any explicit static typing in the way that you’re familiar with in Java. We assigned strings and numbers to variables and didn’t care about the type. Besides this, Groovy implicitly assumes these variables to be of static type java.lang.Object.
In this article I will give you a quick introduction about one of Java 8’s new features: lambda expressions. I will show you what lambda expressions are and how can you utilize this new feature.
What is a linked list? The Linked Lists is another data structure and is also a common data structure that includes a group of nodes in a sequence that is divided into two parts and each node consists of data and the address part of the next node and forms a chain. It is used… Continue reading
Installation The only prerequisite for installing Groovy is that you must first have a 1.4 or 1.5 or 1.6 JDK installed (available free from http://java.sun.com/j2se/) and the JAVA_HOME environment variable set to the location of your JDK installation.
We have used Groovy in direct mode. In this part, there is another way of using Groovy is to compile it to Java byte code and running it as regular Java application code within a Java Virtual Machine (JVM). This is called precompiled mode. Both ways execute Groovy inside a JVM eventually, and both ways… Continue reading
In general sense, filter is a method or tool that is used to show only certain amount of information from selected data and in Microsoft excel, filters can be used to narrow down the data in your worksheet and allowing you to view only the information you need.
In this article I’ll introduce the interpreter design pattern and give you an example how you can use it.
In this article I’ll write about the Iterator Design Pattern. This pattern is used to iterate over an aggregate object without exposing the underlying implementation of this object.