Java: fillings two vectors and sorting them -
How can I fill two vectors and add them together (either index or object type in class) I feel that if I use the index to combine them, then the collection can handle it from the collection. Otherwise I would have to make a comparator.
We have to give the code in the Java 1.4 conference.
To make your imagination easy; This is a grid with a sorting vector (rows) and a content vector (with all the coals). They need to be filled in a vector and sorted.
Reference: I have a gridboard layout that has all the components placed in a huge order. I need to cycle through all the components and fill them in the right grid sequence (gridux, grid). For that solution I thought of two vectors, defines one line and points to vector in which there is this color. At the time of filling the vector either I will be solved or I will have to solve it in the second step. I think there is no object for Java 4, in which there are two vectors in which there is an object, okay?
OO is to wrap the objects of the solution into some vectors that implement in a comparatively manner and the actual Keeps an indicator on the object. In this way, you can sort each other independent vectors and use the cover to get the real object.
This "decorator" design pattern is.
Comments
Post a Comment