This chapter covers
Do not worry about your difficulties in mathematics. I can assure you mine are still greater.
Groovy supports a limited set of datatypes at the language level; that is, it offers constructs for literal declarations and specialized operators. This set contains the simple datatypes for strings, regular expressions, and numbers, as well as the collective datatypes for ranges, lists, and maps. This chapter covers simple datatypes; the next chapter introduces collective datatypes.
Before we go into details, we’ll talk about Groovy’s general approach to typing. With ...