Mhmmm... so I tried this out:
1
| public void query([...], List<? extends QuadtreeElement> results) { [...] } |
Which didn'nt work. It gave me this error on a later "results.add([QuadtreeElement])" (The problem is, that I don't know which QuadtreeElement implementing class is actually is:
The method add(capture#1-of ? extends QuadtreeElement) in the type List<capture#1-of ? extends QuadtreeElement> is not applicable for the arguments (QuadtreeElement)
The problem on the later call of "query" didn't throw any errors.
So I changed it to:
1
| public void query([...], List<? super QuadtreeElement> results) { [...] } |
So now the Error on the "results.add([QuadtreeElement])" is gone, but the error on the "tree.query([...], [ArrayList])" is back:
The method query(StaticRect, List<? super QuadtreeElement>) in the type Quadtree is not applicable for the arguments (StaticRect, ArrayList<Quadtree.Element/*Mind that there is the dot*/>)
Also, since this might be helpful, here is the almost-complete source-code:
[Offtopic: Riven, the pastbin seems to be broken:
"8: Undefined variable: seek
File: /home/jgo/public_html/addon_pastebin.php
Line: 12"
So I just post it as normal pastebin:]
http://pastebin.com/C0RsHqipI need help... :/
The problem with using "Quadtree<E extends QuadtreeElement>" is, that this would not be working:
1
| elements = new E[elemPerQuad]; |
I hope you can help me

EDIT:
just a quick question about what you do with this "result" collection.
Do you fill it with elements in your querry method?
If I think it is not the good of a idea, beside then you should use an upper and not a lower bound. ? super CLASS instead of ? extends CLASS
Yes I do fill it with "results.add([QuadtreeElement])"...