Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class App {
- public static void main(String[] args) {
- System.out.println("trn:" + Foo.get().bar());
- System.out.println("Title trn : " + Names.get().title());
- System.out.println("Password trn : " + Names.get().password());
- System.out.println("Username trn : " + Names.get().username());
- System.out.println("One param trn : " + Names.get().param("some"));
- System.out.println("Two params trn : " + Names.get().params("some", "params"));
- System.out.println("Three params trn : " + Names.get().params3("some", "params", "and another"));
- }
- }
- names.properties
- ----------------
- password=property password
- username=property username
- title=property title
- param=property param; {0} first (and only) arg.
- params=property params; {0} first arg; {1} second arg.
- params3=property params; {0} first arg; {1} second arg; {2} third arg.
- foo.properties
- --------------
- bar=foo
- Output
- ------
- Title trn : property title
- Password trn : property password
- Username trn : property username
- One param trn : property param; {0} first (and only) arg.
- Two params trn : property params; {0} first arg; {1} second arg.
- Three params trn : property params; {0} first arg; {1} second arg; {2} third arg.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement