Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test {
- public static int[] getArray() {
- return null;
- }
- public static void main(String[] args) {
- int index = 1;
- try {
- getArray()[index = 2]++; //эта строка
- } catch (Exception e) {
- }//empty catch
- System.out.println("index = " + index);
- }
- }
Add Comment
Please, Sign In to add comment