I am trying to retrieve the group of values from property file based on the key.
myproerty.properties
key=1
name=adam
place=USA
address=Michigan
Key=2
name=umesh
place=india
address=bengaluru
I want to retrieve values of that particular key values.
Earlier i tried using the below method but it doesnt differentiate key.
myProperties = new Properties();
myProperties.load(HelloWorld.class.getResourceAsStream("/myproerty.properties"));
name=myProperties.getProperty("adam");
but how do we retrieve group of values based on the key