Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Properties;
import java.util.Set;

public class Main {

    public static void main(String[] args) {
        Properties prop = new Properties();

        prop.put("Chapter Count", "200");
        prop.put("Tutorial Count", "15");
        prop.put("tutorial", "java2s.com");

        // save the Property names in the set
        Set<String> set = prop.stringPropertyNames();

        System.out.println(set);
    }
}