Since List.of() creates an immutable list, changing it to a mutable list -->.
List<Book> books = new ArrayList<>(List.of(
new Book("A1", "T1"),
new Book("A2", "T2"),
new Book("A1", "T2")
));
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
SrinivasJasti
2 weeks, 1 day agoxplorerpj
6 months, 3 weeks ago