Please check the method's full Javadoc, it explains the behavior clearly.

Gary

On Fri, Dec 3, 2021, 07:29 time_crossing <time_cross...@163.com> wrote:

>
>
> Hi.
> When I write this code:
> class Solution{
> public static void main(String[] args) {
> String code = "constant_true";
> System.out.println(StringUtils.split(code,"constant_")[0]);
>
>
> }
> }
>
>
> I hope it retrun “true".
> But it return “rue”.
> Is it a bug? Should I try to fix it?

Reply via email to