SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
I think your question is "If my class has methods named "getX()" and "setX()", I think there's probably a field named something like "X". How can I find out exactly what it's called?"
nimo frey wrote:
What is the best solution for such scenarios?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
nimo frey wrote:hello rob,
yes that works great! thank you !
the only thing I do not understand is, why to have to write this:
instead of this:
I understand, that this is a generic method and <T> the generic collection, but for what "<T> void"?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
<T> is the method-specific generic type
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Oh. Hi guys! Look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|