Integer[] arr = {1};List<AccountListResp> list = listResp.stream().peek(e -> e.setRow(arr[0]++)).collect(Collectors.toList());