nrainer

Germany

May
18
comment In which condition which overloaded version of toArray() and toArray(T[] a) should be use?
Never, unless you want to get a ClassCastException. You can use the parameterless method if you want to work with an object array.
May
18
comment In which condition which overloaded version of toArray() and toArray(T[] a) should be use?
Your cast is not working, try it out! You don't waste memory if you pass in an array of the correct size: iName.toArray(new String[iName.size()]) is better than iName.toArray(new String[0]).
May
18
revised In which condition which overloaded version of toArray() and toArray(T[] a) should be use?
added 83 characters in body
May
18
answered In which condition which overloaded version of toArray() and toArray(T[] a) should be use?
Apr
27
awarded Organizer
Apr
27
revised Security - Method returns internal array - Sonar security warning - even when I am returning a clone
adjusted tags
Apr
27
answered Security - Method returns internal array - Sonar security warning - even when I am returning a clone
Apr
16
awarded Good Question
Apr
16
accepted Why can this generic method with a bound return any type?
Apr
16
revised Why can this generic method with a bound return any type?
replaced incorrect tag
Apr
16
awarded Yearling
Apr
16
awarded Nice Question
Apr
16
revised Why can this generic method with a bound return any type?
added 66 characters in body
Apr
16
revised Why can this generic method with a bound return any type?
deleted 1 character in body
Apr
16
comment Why can this generic method with a bound return any type?
Java version is: 1.7.0_45 32 bit
Apr
16
awarded Yearling
Apr
16
asked Why can this generic method with a bound return any type?
Apr
13
awarded Caucus
Apr
13
comment Mockito.when() not working
How do you create the mock object?
Apr
11
asked How to rename a package in all source folders with Eclipse?
1 2 3 4 5