Created
September 6, 2017 18:21
-
-
Save jeffscottbrown/815620660a7a4c2d310b58b593cefc08 to your computer and use it in GitHub Desktop.
String Clarification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| groovy:000> | |
| groovy:000> aString = 'some string' | |
| ===> some string | |
| groovy:000> aDoubleQuotedString = "some string" | |
| ===> some string | |
| groovy:000> aGString = "Year: ${2070+42}" | |
| ===> Year: 2112 | |
| groovy:000> | |
| groovy:000> aString.class | |
| ===> class java.lang.String | |
| groovy:000> | |
| groovy:000> aDoubleQuotedString.class | |
| ===> class java.lang.String | |
| groovy:000> | |
| groovy:000> aGString.class | |
| ===> class org.codehaus.groovy.runtime.GStringImpl | |
| groovy:000> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment