Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Posts about Groovy

Groovy overview

May 14, 2021 19:00 0 Comment Groovy

Groovy's characteristics, Groovy's characteristics, Groovy is an object-oriented language based on the Java platform. G, roovy 1.0 was released on January 2, 2007, with Groovy 2.4 as the current major r

Groovy environment

May 14, 2021 19:00 0 Comment Groovy

Groovy environment, There are several ways to get Groovy environment settings., Download and install -, Go to the, link www.groovy-lang.org/download.html get, the Windows

Groovy basic syntax

May 14, 2021 19:00 0 Comment Groovy

Create your first Hello World program, Create your first Hello World program, Import a statement in Groovy, Groovy token, Groovy commented, Semicolon, Identity, Keywords, Blank, Text, To understand Groovy's basic syntax, let's first look at a simple Hello World program., Create your first Hello World program, Create Hello World, you

Groovy data type

May 14, 2021 19:00 0 Comment Groovy

Built-in data types, Built-in data types, The binding value, The numeric class, In any programming language, you, need to use a variety of variables to store various types of information., 20>, Variables simply keep values where t

Groovy variable

May 14, 2021 19:00 0 Comment Groovy

Variable declaration, Variable declaration, The variable is named, Print the variable, Variables in Groovy can be defined in two ways - using the local syntax of the data type, or using the def keyword., ed., his is what Groovy parsers n

Groovy operator

May 14, 2021 19:00 0 Comment Groovy

Arithmetic operator, Arithmetic operator, The relationship operator, The logical operator, Bit operator, The assignment operator, The range operator, Operator priority, An operator is a symbol that tells the compiler to perform specific mathematical or logical operations., Groovy has the following types of operators -

Groovy loop

May 14, 2021 20:00 0 Comment Groovy

Loop control statements, Loop control statements, So far, we've seen statements executed one by one in order., /b10>, In addition, statements are provided in Groovy to change the flow of control in th

Groovy conditional statement

May 14, 2021 20:00 0 Comment Groovy

Groovy conditional statement, A conditional declaration requires the program to specify one or more conditions to judge, one or more statements to be executed if the condition is d

Groovy method

May 14, 2021 20:00 0 Comment Groovy

Method parameters, Method parameters, The default parameters, Method returns a value, The instance method, Local and external parameter names, Method property, The method in Groovy is defined using the return type or using the def keyword. M, ethod can receive any number of parameters., ic., odifiers such as

Groovy file I/O

May 14, 2021 20:00 0 Comment Groovy

Read the file, Read the file, Read the contents of the file to the string, Write to the file, Gets the size of the file, Test whether the file is a directory, Create a directory, Delete the file, Copy the file, Get the contents of the catalog, Groovy provides many aids when using I/O, and, Groovy provides simpler classes to provide the following functionality for files., Read the file, Write

Groovy is optional

May 14, 2021 20:00 0 Comment Groovy

Groovy is optional, Groovy is an "optional" type of language, and this distinction is an important language when understanding the fundamentals of language. J, ava is a "

Groovy numbers

May 14, 2021 20:00 0 Comment Groovy

Example, Example, The digital method, In Groovy, numbers are actually represented as objects, and they are all instances of class Integer., To make an object do something, we need to call

Groovy string

May 14, 2021 20:00 0 Comment Groovy

The string index, The string index, The basic string operation, String method, Reverse, constructs a string text in Groovy by including string text in quotation marks., Groovy offers a variety of ways to represent String literall

Groovy range

May 14, 2021 20:00 0 Comment Groovy

Groovy range, A range is shorthand for a specified sequence of values., The range is represented by the first and last values in the sequence, and Range can be incl

Groovy list

May 14, 2021 20:00 0 Comment Groovy

Groovy list, A list is a structure that stores a collection of data items., In Groovy, List saves a series of object references., Object references in List occupy