Granted, my Java knowledge is very rusty these and thank goodness for IDEA to help me get up to speed again rapidly before I start teaching a Data Structures course with it.
I've disable a few lightbulb suggestions in the past but I'm baffled by the suggestion that I should split a declaration and initialization into two parts.
In my experience, when possible, one should not only declare variables as close to where they will be used but also to make sure that if possible, they should never be uninitialized (even if Java's default is what one wants, which is mostly NOT the case).
So I don't understand why this particular suggestion is being made. It seems like very bad advice, particularly for new programmers.''
What's the thinking?