/*
 * Created on Oct 1, 2003
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package TestClasses;

import java.util.*;
import java.io.*;

/**
 * @author student
 *
 * This class is being used for testing the Property class of java.util.
 * 
 */
public class PropertiesTest {

	/**
	 * This method is being used for checking the Property class usage.
	 * @param args arguments, not used.
	 * @return void
	 */
	public static void main(String[] args) {
		try{
			Properties p = new Properties ();
			p.load(new FileInputStream("coffee.txt"));		
			String url = p.getProperty("MYSQLURL");
			String url2 = p.getProperty("URL");

			System.out.println("MYSQLURL "+url);
			System.out.println("URL "+url2);
		}
		catch(Exception e){
			System.out.println(e.toString());
		}
	
	}
}
