Groovy Tutorial


1 Introduction

1.1 Why Dynamic Languages?
1.2 What’s Groovy?
1.3 Why Groovy?
1.4 What’s in This Book?
1.5 Who Is This Book For?
1.6 Acknowledgments

2 Getting Started

2.1 Getting Groovy
2.2 Installing Groovy
2.3 Test-Drive Using groovysh
2.4 Using groove console
2.5 Running Groovy on the Command Line
2.6 Using an IDE
2.7 Creating the first program Hello World
2.8 Tokens in Groovy

3 Basic Syntax

3.1 Comments in Groovy
3.2 Semicolons
3.3 Identifiers
3.4 Keywords
3.5 Whitespaces
3.6 Literals

4 Data Types

4.1 Built-in Data Types
4.2 Bound values
4.3 Class Numeric

5 Variables

5.1 Variable Declarations
5.2 Naming Variables
5.3 Printing Variables

6 Operators

6.1 Arithmetic Operators
6.2 Relational operators
6.3 Logical Operators
6.4 Bitwise Operators
6.5 Assignment operators
6.6 Range Operators
6.7 Operator Precedence

Loops and Control Statements

7.1.1 While Statement
7.1.2 for Statement
7.1.3 for-in Statement
7.2 Loop Control Statements
7.2.1 Break Statement
7.2.2 Continue Statement


%d bloggers like this: