![]() |
坚强的板栗 · 第24天 Kotlin小學堂(13) : ...· 5 天前 · |
![]() |
聪明的大脸猫 · Java解析JSON文件「建议收藏」开发者社区· 2 天前 · |
![]() |
叛逆的脸盆 · 精讲RestTemplate第3篇-GET请 ...· 昨天 · |
![]() |
道上混的沙发 · C#访问共享服务器的文件路径进行上传和下载方 ...· 昨天 · |
![]() |
礼貌的课本 · 密钥保管库机密与模板 - Azure ...· 昨天 · |
![]() |
高大的灯泡 · 图片选择,多张选择,打开相册及相机,Goog ...· 2 年前 · |
![]() |
粗眉毛的斑马 · 处理 ASP.NET Core 中的错误 ...· 2 年前 · |
![]() |
发呆的哑铃 · CONTAINS ...· 2 年前 · |
![]() |
风流倜傥的帽子 · SCENIC | ...· 2 年前 · |
Long story short , you must move your return results ; statement at the end of the function.
In this case , you must also declare the results variable somewhere at the start of the function not inside any code block
Let me know if it works fine
Thanks and Regards,
Shiva RV
All Answers
I think it is a simple code issue
Just make your return results; statment at the end before the last " } " . I mean by before closing the function write your return results so you must also initailize your result variable at the start of the function and not inside any block of code.
This error pops up because the function is suppose to return string but in some branch section of your code it doesn't return anything
Let me if the solution helps.
Thanks and Regards,
Shiva RV
I'm not sure what you mean. I should move my results variable definition to ouside my if statement?
Long story short , you must move your return results ; statement at the end of the function.
In this case , you must also declare the results variable somewhere at the start of the function not inside any code block
Let me know if it works fine
Thanks and Regards,
Shiva RV