Rob Spoor wrote:The coordinate system is in pixels, so how can you draw a pixel at a location that spans to pixels?
Bear Bibeault wrote:Where do you want to draw this cloud? In an image file? on a desktop window? on an HTMl page? Other?
Bear Bibeault wrote:Where?
Paul Clapham wrote:The <E> is a "type parameter"; it means the same type throughout the class which it parametrizes.
Write an CircularArrayRing<E> class which implements the Ring<T> interface and extends AbstractCollection<E>.
Anissa Pary wrote:
Jeff Verdegan wrote:
Anissa Pary wrote:Sorry I have made a mistake and printed wrong stuff this six mistakes was from another program and here it is just a failure...
Okay, so, what exact errors are you getting here and on which exact lines are they occurring?
it is saying runs:6/6 errors:0 failures: 1
junit.framework.AssertionFailedError: Resizing too often (inefficient) expected: <-1> but was <13> at CircularArrayQueueTest.testResize(CircularArrayQueueTest.java:122). So, it means
in the method:
but when I am changing the value of it is still complaining and it fails only when I run the code
Jeff Verdegan wrote:
Anissa Pary wrote:Sorry I have made a mistake and printed wrong stuff this six mistakes was from another program and here it is just a failure...
Okay, so, what exact errors are you getting here and on which exact lines are they occurring?
Jeff Verdegan wrote:
Anissa Pary wrote:
Jeff Verdegan wrote:
Campbell Ritchie wrote:You appear to have a kind of List which does not support removals. If you look in the documentation, you find remove() is “optional”, so classes implementing List are permitted to throw such an Exception instead of removing.
And if Anissa reads the docs for the Arrays.asList() call she's using, she'll find it returns just such a List.
Anissa read docs but she did not know about optional methods
That sentence seems self-contradictory.
and she cannot use arrayList because the program fails even quicker=(
If you show your current code and provide details about exactly how and where it fails, someone can help you. Remember, ItDoesntWorkIsUseless(⇐click) and you need to TellTheDetails.(←click)
Just at a guess though, you can create a modifiable ArrayList from an unmodifiable one.
Not saying that's necessarily a proper approach, but it may get you pointed in the right direction.