jdk/src/share/classes/java/util/ListResourceBundle.java
changeset 7506 bc1ab1b31622
parent 5506 202f599c92aa
child 7668 d4a77089c587
child 7809 bced84a279ec
equal deleted inserted replaced
7505:9e49cbe70fb2 7506:bc1ab1b31622
    70  * <blockquote>
    70  * <blockquote>
    71  * <pre>
    71  * <pre>
    72  *
    72  *
    73  * public class MyResources extends ListResourceBundle {
    73  * public class MyResources extends ListResourceBundle {
    74  *     protected Object[][] getContents() {
    74  *     protected Object[][] getContents() {
    75  *         return new Object[][] = {
    75  *         return new Object[][] {
    76  *         // LOCALIZE THIS
    76  *         // LOCALIZE THIS
    77  *             {"s1", "The disk \"{1}\" contains {0}."},  // MessageFormat pattern
    77  *             {"s1", "The disk \"{1}\" contains {0}."},  // MessageFormat pattern
    78  *             {"s2", "1"},                               // location of {0} in pattern
    78  *             {"s2", "1"},                               // location of {0} in pattern
    79  *             {"s3", "My Disk"},                         // sample disk name
    79  *             {"s3", "My Disk"},                         // sample disk name
    80  *             {"s4", "no files"},                        // first ChoiceFormat choice
    80  *             {"s4", "no files"},                        // first ChoiceFormat choice