On Aug 12, 2:55 pm, DaveB <[email protected]> wrote:
> miga:
> Along with Crizzo, I also interpreted the homework for lab 1010 to create a 
> new myProperties using the existing System Properties, then add the 3 myKey 
> properties and then display all the System properties which would now include 
> the three new properties.
>
> If I understood your response correctly, you do not want the entire system 
> properties list, only a list of the new myProperties.
> This would change the constructor in the homework to: Properties myProperties 
> = new Properties();
Yes, exactly, that's exactly what the homework states,
"Write a program in which the following properties are added to a
Properties object called myProperties"
it does not state to use System.getProperties(), does it? And besides,
the exercise using System.getProperties() has already be done in the
lab, and generally the homework is a slight variation of what has been
done in the lab, but not the exact replication.
>
> and the output to:  myProperties.list(System.out);
>
> which would yield the results of:
> run:
> -- listing properties --
> myKey20=myValue20
> myKey30=myValue30
> myKey40=myValue40
> BUILD SUCCESSFUL (total time: 2 seconds)
>
> Shall we resubmit the homework assignment?
As you want, maybe I'm wrong here.At least, that's how I interpret it.

--~--~---------~--~----~------------~-------~--~----~
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