Java tutorial
import java.io.StringReader; import java.util.Properties; public class Main { public static void main(String[] args) throws Exception { Properties prop = new Properties(); String s = "Chapter Count=200\nTutorial Count=15"; // create a new reader StringReader reader = new StringReader(s); // load from input stream prop.load(reader); // print the properties list from System.out prop.list(System.out); } }