Matthias

United Kingdom

Age: 30

Post-doctoral researcher at University College London.

Aug
14
comment What is the easiest/best/most correct way to iterate through the characters of a string in Java?
Any further thoughts on this? Can we reasonably expect compiler optimization to take care of avoiding the repeated call to s.length(), or not?
Aug
13
awarded Civic Duty
Jul
6
awarded Popular Question
Jul
2
awarded Curious
Jul
2
comment Java: Objects reachable by strong or weak references
You are right about the arrays. I came to the same conclusion. However the array looping code will need a null check, calling collectAllReachableObjects will a null will crash it.
May
12
comment How to write a UTF-8 file with Java?
@Chris the bugs.sun.com link is broken. Do you have one that works?
May
7
accepted Getting the class of List<T>
May
7
comment Getting the class of List<T>
Hurray, that worked! Thanks!
May
7
revised Getting the class of List<T>
added 103 characters in body
May
7
comment Getting the class of List<T>
Oops, you're right. I didn't see the warning because I had @SuppressWarnings("unchecked") on the constructor.
May
7
comment Getting the class of List<T>
I don't get a warning at that line (at least not in eclipse). I get a compilation error at it instead. Do you know what I should change in the code?
May
7
asked Getting the class of List<T>
May
6
comment How to align views at the bottom of the screen?
Very elegant solution. Thanks!
May
1
comment android EditText delete(backspace) key event
As a matter a fact it also works with the soft keyboard on my Samsung Galaxy Xcover (running v2.3.6/Gingerbread)
May
1
comment android EditText delete(backspace) key event
On my Nexus4 (running stock KitKat) this does work for the software keyboard.
Apr
7
awarded Nice Question
Apr
2
comment how to get background color of button on android?
?? Won't that just always return YELLOW?
Feb
24
awarded Yearling
Feb
24
awarded Yearling
Jan
30
awarded Notable Question
1 2 3 4 5