Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String toString() {
- String votes = "[";
- for(int i = this.voting.size()-1; i < this.voting.size()-5; i--) {
- if(i == this.voting.size()- 4) {
- votes += this.voting.get(i) + "]";
- } else {
- votes += this.voting.get(i) + ", ";
- }
- }
- return votes;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement