Example 4-10 illustrates basic property file formatting. The Properties class in the java. Both the keys to lookup a value and the values returned are Java Strings . 4- 10 shows a simple properties file. These characters indicate that the line is a comment line.
Keys are case sensitive.
Example 4-11 illustrates this point. All the leading whitespace on any continuation line is discarded. You could then, for example, break up the value returned to you by using the java. Printing a List of Animals Stored in a Properties Resource File import java. Refer-It Affiliate Program and Referral Directory.