attempted this code but still not working
do you see what could be the issue with this code? a attempted re-typing what I saw in the video but it is still not working I am not sure what I mistyped or what


4 Replies
⌛
This post has been reserved for your question.
Hey @SidKid! 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.
Voice Of Calling NPO
YouTube
Recursion - 1 (strDist) Java Solution || Codingbat.com
As these videos are made by our aspiring computer scientists that are in high school, we believe the videos are friendly and relatable. We hope that our website, voiceofcoding.com, will help person who are in need of computer science resources.
http://voiceofcoding.com/
https://www.gofundme.com/f/voiceofcalling
http://voiceofcalling.org/
The compiler tries to tell you that in line 23 (the marked line in the second screenshot), you call strDist with just one argument, where it expects two arguments. Do check how that line is meant to be. Often there's a mix-up in parentheses and commas. Right now, all the arguments go into the str.substring call, and the single return value of str.substring is not enough, as strDist expects two arguments. The same applies to the last return statement, but the compiler hasn't come that far yet.
💤
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.