By default, anonymous inner class properties are all finnal modified so references to external variables will prompt an error, but addends will do the job

int index[] = {0};
Arrays.asList(parameters).forEach(parameter -> {
    System.out.println(parameter.getName() + ":" + args[index[0]]);
    index[0]++;


});