Return middle 3 characters from string length greater than 3
How is my implementation of the middleThree? This is the only solution I could come up with.
5 Replies
⌛
This post has been reserved for your question.
Hey @Steadhaven! 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 closed after 300 minutes of inactivity.
I'm not too sure but to me it looks like this would only work with odd length strings.
./run
Here is your java(15.0.2) output @noComment | Kez
okay nevermind
I guess the code is quite solid, I think it's readable and if you are better at java than me (like most people) you wouldn't think there is anything wrong with it.
💤
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.