MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import java.io.FileInputStream;
import java.util.Properties;

public class MainClass {
    public static void main(String args[]) throws Exception {
        Properties p = new Properties();
        p.load(new FileInputStream("colon.txt"));
        p.list(System.out);
    }
}

//File: test.txt
/*
foo:bar
one
two
three=four
five  six seven eight
nine ten
    
    
*/