On Sep 7, 1:47 pm, miga <[EMAIL PROTECTED]> wrote:
> On Sep 7, 5:13 pm, "Chrys Schock" <[EMAIL PROTECTED]> wrote:> What's  the 
> point of setting the initial properties to those in
> > "myProperties.txt"?
>
> We may want in certain circumstances add some properties to the system
> properties for use in your program. The exercise shows you how to do
> that.

Ah, do you mean the exercise shows us two ways to ADD to system
properties:  via the txt file and via setProperty method?  If so, the
comments could be made clearer, maybe:
// set up new properties object
        // from file "myProperties.txt"
        FileInputStream propFile = new FileInputStream(
                "myProperties.txt");
        Properties p = new Properties(System.getProperties());
        p.load(propFile);


>  And is it required in the Homework assignment?  
>
> Just read the homework and you'll find the answer.

Well, since there's no reference to it, I guess I'll assume 'no'.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to