Q:

Using a property field value within ' ' in java?

I have a property file in my project, say config.properties, having a property field project.searchkey. Can I have the value of this field as project.searchkey = 'one','two'? 
Will it be considering both the values with the '' sign?

A:

Using java.util.Properties (see API)
public class Main {
    public static void main(String[] args) {
        Properties prop = new Properties();
        try {
            prop.load(Main.class.getClassLoader().getResourceAsStream("config.properties"));
            String propertyValue = prop.getProperty("project.searchkey");
            System.out.println(propertyValue);
        } catch (IOException ex) {
            ex.printStackTrace();
        }
    }
}

It prints 'one','two', so it reads everything after the = as a single String
project.searchkey='one','two' returns 'one','two'
project.searchkey=one,two returns one,two
project.searchkey=one, 'two' returns one, 'two'
etc ...

