Given the content of /resourses/Message.properties:
welcome1="Good day!"
and given the code fragment:
Properties prop = new Properties ();
FileInputStream fis = new FileInputStream ("/resources/Message.properties"); prop.load(fis);
System.out.println(prop.getProperty("welcome1"));
System.out.println(prop.getProperty("welcome2", "Test"));//line n1
System.out.println(prop.getProperty("welcome3"));
What is the result?
MPignaProTech
6 months, 1 week agosteefaand
1 year, 3 months agor1muka5
2 years, 3 months agoOhayou
3 years, 2 months agoWilsonKKerll
3 years, 3 months agoPontPont
3 years, 11 months ago