Re: [Lang]Consult

2021-12-03 Thread Alex P
You need to use "splitByWholeSeparator" instead of "split" https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#splitByWholeSeparator-java.lang.String-java.lang.String- On Fri, Dec 3, 2021 at 7:50 AM time_crossing wrote: > > Thanks for response. > I kno

Re: Consult

2021-12-03 Thread Gary Gregory
Please check the method's full Javadoc, it explains the behavior clearly. Gary On Fri, Dec 3, 2021, 07:29 time_crossing wrote: > > > Hi. > When I write this code: > class Solution{ > public static void main(String[] args) { > String code = "constant_true"; > System.out.println(StringUtils.split

Re: [Lang]Consult

2021-12-03 Thread time_crossing
Thanks for response. I know System.out.println(StringUtils.split(code,"_")[1]); Will retrun expected result. But I think when I use String code = "constant_true"; System.out.println(StringUtils.split(code,"constant_")[0]); At first I thought return is (“" and “true”) In fact this code will ret

Re: Consult

2021-12-03 Thread Marco Neumann
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 wrote: > > > Hi. > When I write this code: > class Solution{ > public static void main(String[] args) { > String code = "constant_true"; > System.

Consult

2021-12-03 Thread time_crossing
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?

Re: [OGNL] Drop commons-ognl project

2021-12-03 Thread Lukasz Lenart
pt., 3 gru 2021 o 12:30 sebb napisał(a): > Only TLPs can be moved to the Attic. > > Commons components can be moved to dormant if they are no longer being > developed. Thanks sebb, didn't know that :) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ ---

Re: [OGNL] Drop commons-ognl project

2021-12-03 Thread sebb
On Fri, 3 Dec 2021 at 08:08, Lukasz Lenart wrote: > > And just to clarify one thing: by drop I mean moving the project into > the attic, I still would like to extract some stuff (like benchmarks) > into the code hosted at Github. Only TLPs can be moved to the Attic. Commons components can be mov

Re: [OGNL] Drop commons-ognl project

2021-12-03 Thread Lukasz Lenart
And just to clarify one thing: by drop I mean moving the project into the attic, I still would like to extract some stuff (like benchmarks) into the code hosted at Github. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ pt., 26 lis 2021 o 10:28 Lukasz Lenart napisał(a): > > czw., 2