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
2 weeks, 3 days agosteefaand
10 months, 1 week agor1muka5
1 year, 9 months agoOhayou
2 years, 9 months agoWilsonKKerll
2 years, 9 months agoPontPont
3 years, 6 months ago