Code: Select all
noLabel : NO
okLabel : YES
cancelLabel : Cancel
Code: Select all
okLabel=YES
noLabel=NO
cancelLabel=Cancel
Code: Select all
msgs.getKeys().asIterator().forEachRemaining(System.out::println);
noLabel
okLabel
cancelLabel
Moderator: admin
Code: Select all
noLabel : NO
okLabel : YES
cancelLabel : Cancel
Code: Select all
okLabel=YES
noLabel=NO
cancelLabel=Cancel
Code: Select all
msgs.getKeys().asIterator().forEachRemaining(System.out::println);
noLabel
okLabel
cancelLabel
Code: Select all
c=1
a=1
d=1
b=1
e=1
aa=1
""=1
Code: Select all
msgs.getKeys().asIterator().forEachRemaining(x -> System.out.println(x + ": " + x.hashCode()));
Code: Select all
aa: 3104
"": 1088
a: 97
b: 98
c: 99
d: 100
e: 101
Thus, the chain is:Remember that if there were another properties file named mymsgs_en.properties also present, then the values of this file would be superimposed on the values mymsgs.properties and then values of mymsgs_en_UK.properties would be superimposed on the resulting union.
Users browsing this forum: No registered users and 3 guests