Skip to content

Commit 3d3eab7

Browse files
author
Green Learner
committedJul 7, 2019
update
1 parent 5e7162a commit 3d3eab7

11 files changed

+493
-2
lines changed
 

‎.idea/Groovy.iml

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/misc.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/uiDesigner.xml

+124
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/workspace.xml

+267
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Groovy.iml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
<orderEntry type="library" name="groovy-2.5.7" level="application" />
11+
</component>
12+
</module>

‎Hello.groovy

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#!/user -- shebang line comment
12
println 'hello groovy script'

‎Readme.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
## Table of contents to be covered under apache groovy tutorial
22

33
* Overview and environment setup
4-
https://www.youtube.com/watch?v=6N2NmHif08E
4+
https://www.youtube.com/watch?v=6N2NmHif08E
55
* Execute program from command line
66
https://www.youtube.com/watch?v=4L9WVlG-pXY
77
* Groovy shell and groovy console
88
https://www.youtube.com/watch?v=6N2NmHif08E
99
* Hello world program and script
10-
* Groovy Variables
10+
https://www.youtube.com/watch?v=4L9WVlG-pXY
11+
* Groovy Comments
12+
* Groovy keywords
13+
14+
as, assert, break, case, catch, class, const, continue, def, default, do, else, enum,
15+
extends false finally for goto, if, implements, import, in, instanceof, interface, new, null, package,
16+
return, super, switch, this, throw, throws, trait, true, try, while
17+
18+
* Groovy Identifiers
1119
* Groovy Operators
1220
* Groovy Datatype
1321
* Groovy Methods
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#! shebang line comment
2+
package com.gl.groovy
3+
/**
4+
* class declaration
5+
*/
6+
class GroovyComments {
7+
8+
/**
9+
* main method
10+
* @param args
11+
*/
12+
public static void main(String[] args) {
13+
/*
14+
Multi line comments
15+
this line 1 comments
16+
this line 2 comments
17+
this line 3 comments
18+
this line 4 comments
19+
*/
20+
println 'Groovy comments explanation'/*multi line comment
21+
at end of statement*/
22+
int a = 1+2 /* comment in mid section */+3
23+
24+
println "value of a is $a"
25+
String name = 'buddy'
26+
//calling method
27+
callMethod(name)
28+
}
29+
/**
30+
* This is groovy doc comment
31+
* This can be read when inspecting the below method from another class
32+
* this is same as java doc comments
33+
* @param name
34+
*/
35+
static void callMethod( String name){
36+
println "hi $name !!"
37+
}
38+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.gl.groovy
2+
3+
/**
4+
* author : arvind
5+
*/
6+
class GroovyIdentifiers {
7+
8+
static void main(String[] args) {
9+
10+
}
11+
}

0 commit comments

Comments
 (0)
Please sign in to comment.