Why does the following work fine?
String str; while (condition) { str = calculateStr(); ..... }
But this one is said to be dangerou
According to Google Android Development guide, the variable scope should be limited. Please check this link:
Limit Variable Scope