Declaring isEmpty() and searchString() methods?
Hello! I am a first year CS student working on some code and am troubled by a couple methods. Everytime I try to use an isEmpty() or searchString() method, it says it is undefined while I am constantly seeing that it comes with a sort of package like String. Any help in getting this error fixed is greatly appreciated.
6 Replies
⌛
This post has been reserved for your question.
Hey @NieR Enthusiast! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button 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.
.isEmpty() needs to be called on a string
so for example
Ironically, I figured that out 10 minutes after I posted the question 😭
that always tends to happen
so true ngl
oh god, comments between the method name and the code block
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.