Page 1 of 1

how would i call this code public int totalTexts() { // To be completed int texts = 0; for (int

Posted: Sun Jul 03, 2022 12:00 pm
by answerhappygod
how would i call this code
public int totalTexts() { // To be completed int texts = 0; for (int i = 0; i <discussions.size(); i++) { texts +=discussions.get(i).getReplies().size();
} return texts; }