Originally posted by charlie mills:
[QB]
1.does it matter if i write Integer or int?
Yes. It's like Henry said. By the way, when using Lists, you can't create an list of int, just Integers (not that does matter. Search for Wrappers in
Java and you'll find out that int i = Integer(2); it's possible).
Originally posted by charlie mills:
2.I'm not sure what this phrase means: declaration and initialisation of singleton String objects
Me neither. A Singleton is a Design Patter from GoF's book. That
pattern says that you can instantiate only one instance of that class. If you search at Google's, you'll find a good code explaining that (I guess that Singleton is the simplest pattern).
Originally posted by charlie mills:
3.iterating through a fixed-size collection using a loop - a loop using for would be included in this?
Yep!
A good way to iterate is using the "for-each".
Originally posted by charlie mills:
4.using a method to output to the screen - is this just println?
Not necessarily. When you create a Frame you're outputing something in the screen too, aren't you? Using println you're doing that too.
Originally posted by charlie mills:
5.use of arithmetic operators - i assume this is just using + - etc.
Yep. "+", "-", "/", "%".
Originally posted by charlie mills:
6.use of String operators - is this using + to add strings together?
I guess it is. This question depends on the context of the text (I'm really sure that what I wrote is wrong, sorry). What kind of operators? There's the "+" to concatenate Strings objects and the methods that come with the API.
Originally posted by charlie mills:
7.use of String methods - i'm not sure what this means?
Using methods from the String class. Search Google for the API of String class.
[edit]
Sorry Campbell. I was writing when you post.
[/edit]
[ November 02, 2008: Message edited by: Andre Brito ]