Stephan van Hulst wrote:Well, it depends on the format of your resource file. There are APIs out there that deal with INI files, XML files and .properties files, for instance.
I would dissuade you from storing your resource in a String, while it's in memory. Write a class that strongly types the properties of your resource.
Campbell Ritchie wrote:Do you mean you want to write an additional line in the file? That can easily be done with a buffered writer. If you pass a FileWriter, you can use a boolean argument to its constructor which changes it to append mode, rather than overwrite mode.
You usually create Properties as a sort of Map, so you can implement your options as a Map. The System class has various methods allowing you to alter the standard properties. You would have to work out what format the properties and resources are in, so you can write the additional lines in that format.
Stephan van Hulst wrote:I don't understand your use case, or what you mean.
Resources are supposed to be static, and their location is supposed to be known ahead of time.
Guillermo Ishi wrote:Be careful interpreting these numbers. I was getting consistent 80s on the mocks but got 60 I think on the actual. Some of my mock score may have been due to memorization but on the other hand all the questions I got right I did understand so I don't know if memorization actually benefited. This was not recently - it was just as the test changed to the new one.
Alex Drummond wrote:I'm working towards a new career goal of developing apps for android as a complete beginner to computer science. Could you help me structure my learning better/more comprehensively by reviewing my rough plan below?
My rough plan so far is as follows:
1. Learn programming principles and its fundamentals.
2. Learn about clean code and working with others.
3. Then learn how Android works (Java) and put it all together in a simple app.
Are there steps I might not be aware of? if you were breaking these down into sub-goals or knowledge to learn for each section what would it be?
Any help would be much appreciated!
Alex
Aravind Kumar Thoomu wrote: I have been going through "IVOR HORTON's Beginning Java 2 (JDK 5)" for some time and I was looking for a book which describes- All the contents of OCA Java 7, and the features newly included in Java 7, and their need of emergence, and what Java did with these respective requirements before Java 7?