it's not splitting anything this will.

This will:

System.out.println(StringUtils.split(code,"_")[1]);

On Fri, Dec 3, 2021 at 12:29 PM 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?



-- 


---
Marco Neumann
KONA

Reply via email to