Re: Using arrays of objects ?



TideRider wrote:
I would probably use ...

Just so you know, many newsreaders, mine included, clip material that follows your sig in the reply, and display it "dimmed" or gray in the initial reading. This happened with your replies, which were top-posted.

Top-posting also disrupts the flow of the message and makes it harder to read.

Please don't top-post.

As to your suggestion to use
ArrayList<Tool> toolbox = new ArrayList<Tool>();

It'd likely be better to use

List<Tool> toolbox = ...

or even

Collection<Tool> toolbox = ...

For example, if a given Tool should appear only once in 'toolbox', then the implementing class might better be a Set<Tool>.

--
Lew
.



Relevant Pages

  • Re: Attn: Freides and KB fans
    ... Top-posting doesn't especially bother me... ... I imagine you hold a nail between your teeth and ... If the locked display cases are anything like the enclosed display ... As I brushed against the lid of the display case, ...
    (misc.fitness.weights)
  • Re: help!
    ... If you have an active internet connection and know what language it's in you ... Open the document & if it isn't already displayed click the Toolbox button ... on the Standard toolbar to display the Toolbox. ... button in that palette, then click the bar labeled Translation, specify the ...
    (microsoft.public.mac.office)
  • Re: Opening windows in seperate screens
    ... the toolbox to screen:0.1. ... dat je tussen het openen in gimp kunt zetten?? ... and you don't know what the DISPLAY environment variable is for? ... setenv DISPLAY 127.0.0.1:0.0 ...
    (comp.graphics.apps.gimp)
  • Re: How to display a large image without auto scal
    ... image by indexing into it. ... then index a portion which is less than the screen ... display this cropped region. ... The second option involves the Image Processing Toolbox. ...
    (comp.soft-sys.matlab)
  • Re: Code Snippet of Display Text on Button Control
    ... I want to display a text on a button which is dragged from the toolbox ... UpdateWindow() ... SetFocus ...
    (microsoft.public.vc.mfc)