Re: help with properties class



<sscce>

import java.util.Properties;

class PropEg
{
public static void main(String arg[])

{

Properties p=new Properties();
p.setProperty("path","C:\\Program Files\\Java\\jdk1.6.0\\bin");

String pvalue = p.getProperty("path");

System.out.println("Property path="+pvalue);

}
}

</sscce>

Hey thanks Andrew. It worked with the escape sequences, but it doesn't
solve my purpose. I wanted to be able to set the class path while
executing the program. Is that possible?

P.S. Can you please explain your code a bit. Am new to this field.

.