Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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);

    }
}