isInteger will not seem to work

I am making a work oganization app and focusing on a method that checks if you wrote the date incorrectly and will prompt you to rewrite it if you did. This is in the unacceptabledate method in the file. First I need to make sure that integers are being written in the date. I cant seem to use isInteger though. I tried toString and Integer.parsrInt and tried using isInteger after but nothing has worked. Please help
4 Replies
JavaBot
JavaBot2mo ago
This post has been reserved for your question.
Hey @nattabatt! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
noComment | Kez
noComment | Kez2mo ago
afaik there is no native isInteger method. You seem to have started to implement your own isInteger()
noComment | Kez
noComment | Kez2mo ago
Here is a comprehensive article on the topic: https://www.baeldung.com/java-check-string-number
Baeldung
Check If a String Is Numeric in Java | Baeldung
Explore different ways to determine whether a String is numeric or not.
JavaBot
JavaBot2mo ago
💤 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.
Want results from more Discord servers?
Add your server