Definition of Quatrain. A quatrain is a stanza in a poem that has exactly four lines. Some quatrains comprise entire poems, while others are part of a larger structure. Quatrains usually use some form of rhyme scheme, especially the following forms: AAAA, AABB, ABAB, and ABBA.
This section contains the types of variable in java. In Java all variable must be declared before it will be used anywhere in the program. The declaration syntax is as follows : type identifier [ = value][, identifier [= value] ...] ; Here 'type' is data type and 'identifier' is the variable name. Java have following types of variable : Local variables.
The Java String class has a number of useful methods: int length() String substring(int begin) String substring(int begin, int end) Note that the positions of characters in a string begin at 0, not 1. Also, the character indexed by the ``end'' parameter is not included in the substring.