Substring in java returns empty character when no value is present at the index

后端 未结 0 500
心在旅途
心在旅途 2020-12-31 12:17

I defined a string in Java with a single letter. When I tried to fetch the substring at index 1, I see empty string instead of a null pointer exception. What is causing this

相关标签:
回答
  • 消灭零回复
提交回复
热议问题