I hope someone can tell me what's wrong with the below code where I am trying to filter out the element in the List<string> which contains the data from the resultset.
It gives me a duplication so I tried to remove .collect(Collectors.toList()) but it is worse - it is not showing anything and I am not sure in what way can I filter the elements that matches the resultSet...
Hope someone can tell me what's wrong with the above code or if there are other ways to achieve my goal.
It is supposed to only give me just UHigherPriEnglish and LSHigherMaths.....
posted 3 weeks ago
I just want to add that this is not returning resultset on the subjects alone. Above that, I have other resultsets which are giving me the right return of data. Prior to doing the resultset, the preparedStatement already set the arrays.
Since I can't add the finding of the subjects to another List which is the resultSet of other data, I am separating out the resultsets of subjects and then display it separately as another list via set attributes.