#myconfig.properties
myname = jook
surname = kajook
////////////////////////
//
public class main {
public static void main(String[] args) throws Exception {
Properties p = new Properties();
p.load(new FileInputStream(new File("myconfig.properties")));
String result = "";
result = p.getProperty("myname");
System.out.println("my name is : "+result);
result = p.getProperty("surname");
System.out.println("my surname is: "+result);
}
}
////
result::::
my name is : jook
my surname is : kajook
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment