how to check if i used a .method()
i thought of something like:
i want the consol output to be something like this.
but i encounted following problems:
- i dont know how to direct to a single Array of the List (f.e. to direct to "Goblin Slayer")
- how to check whether i used
.remove(), .add(), etc.
do you have any ideas / solutions?11 Replies
⌛ This post has been reserved for your question.
Hey @Darknesslion5|Christian! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
one thing i thought of was, creating new methods, like
You can wrap the guild member list into a class and override the methods. E.g.
ok but the task aims towards creating multiple guilds/groups/collections therefore
ArrayList and letting them do some actions together as a union and some individual tasks.
Like if you had 150 individual objects that you want to structure together.
i think this would be bothersome to recreate for each guild or am i wrong?You are doing this once for all guilds. Then you use this class everywhere where a guild is created.
ok ok i think i got it
thanks
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
But it really depends what you actually want to acheive. Adding logging into every method call can be very noisy. So maybe it is better to not log in the class but actually at the callsite when specific actions are taken.
at the callsite?
what do you mean with that
Where you call the
remove() method.Post Closed
This post has been closed by <@245536392308981760>.