I've not heard the term "statement-" or "block-level variables" in Java, but I'm always learning.
Here is the authoritative discussion of variables in Java. I believe that 'i' and 'j' in both of your examples would be called 'local variables.' The 'i' is local to the for loop; the 'j' is local to the block of code in which it is contained. Neither are visible outside their respective localities.
Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795
The Java Language Specification is more authorative than the tutorials, and here there is no mention of block- or statement-level variables. For the purposes of that definition, a for statement and a block are regarded as the same, so you cannot distinguish block or statement variables.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com