Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39063
| From | nobody@example.org (Scott) |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Inclusive or exclusive array |
| Date | 2019-08-02 17:51 +0000 |
| Organization | XMission http://xmission.com/ |
| Message-ID | <5d44779f.3066731218@core> (permalink) |
| References | (4 earlier) <qhrtme$5rc$1@dont-email.me> <slrnqk574p.36g.avl@logic.at> <qhujg0$g3h$1@dont-email.me> <qhuvuf$19d8$1@gioia.aioe.org> <40442ad6-ade1-41b3-98da-1a01b6d0b7c7@googlegroups.com> |
On Thu, 1 Aug 2019 10:04:37 -0700 (PDT), Eric Douglas
<e.d.programmer@gmail.com> wrote:
>On Thursday, August 1, 2019 at 11:19:55 AM UTC-4, Arne Vajh=C3=B8j wrote:
>>=20
>> java.lang.String.substring() is one noticeable example of exclusive end.
>>=20
>> It may be worth noting that .NET System.String.Substring(),
>> C++ std::string::substr() and PHP substr() all chose length.
>>=20
>> Arne
>
>substring is a fun animal. I'm used to start position, length from other l=
>anguages then we get to java with start index, end index.
What make it 'click' for me is when I realized that where other
languages use {start,len}, Java convention uses {start,start+len}.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Inclusive or exclusive array Cecil Westerhof <Cecil@decebal.nl> - 2019-07-30 18:24 +0200
Re: Inclusive or exclusive array Eric Sosman <esosman@comcast-dot-net.invalid> - 2019-07-30 12:52 -0400
Re: Inclusive or exclusive array Cecil Westerhof <Cecil@decebal.nl> - 2019-07-30 20:41 +0200
Re: Inclusive or exclusive array Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2019-07-31 02:19 +0200
Re: Inclusive or exclusive array Eric Sosman <esosman@comcast-dot-net.invalid> - 2019-07-31 07:22 -0400
Re: Inclusive or exclusive array Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2019-08-01 00:44 +0200
Re: Inclusive or exclusive array Andreas Leitgeb <avl@logic.at> - 2019-08-01 08:02 +0000
Re: Inclusive or exclusive array Eric Sosman <esosman@comcast-dot-net.invalid> - 2019-08-01 07:47 -0400
Re: Inclusive or exclusive array Arne Vajhøj <arne@vajhoej.dk> - 2019-08-01 11:19 -0400
Re: Inclusive or exclusive array Eric Douglas <e.d.programmer@gmail.com> - 2019-08-01 10:04 -0700
Re: Inclusive or exclusive array nobody@example.org (Scott) - 2019-08-02 17:51 +0000
Re: Inclusive or exclusive array Eric Douglas <e.d.programmer@gmail.com> - 2019-08-02 10:58 -0700
Re: Inclusive or exclusive array nobody@example.org (Scott) - 2019-08-03 05:40 +0000
Re: Inclusive or exclusive array Arne Vajhøj <arne@vajhoej.dk> - 2019-08-03 21:32 -0400
Re: Inclusive or exclusive array Eric Douglas <e.d.programmer@gmail.com> - 2019-08-05 05:04 -0700
Re: Inclusive or exclusive array Arne Vajhøj <arne@vajhoej.dk> - 2019-08-05 19:30 -0400
Re: Inclusive or exclusive array Eric Sosman <esosman@comcast-dot-net.invalid> - 2019-08-01 14:20 -0400
Re: Inclusive or exclusive array Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2019-08-02 01:15 +0200
Re: Inclusive or exclusive array Eric Sosman <esosman@comcast-dot-net.invalid> - 2019-08-02 16:17 -0400
IntStream.rangeClosed() (was: Re: Inclusive or exclusive array) Andreas Leitgeb <avl@logic.at> - 2019-07-31 11:33 +0000
Re: IntStream.rangeClosed() Eric Sosman <esosman@comcast-dot-net.invalid> - 2019-07-31 07:59 -0400
Re: IntStream.rangeClosed() Eric Douglas <e.d.programmer@gmail.com> - 2019-07-31 05:40 -0700
Re: IntStream.rangeClosed() Eric Sosman <esosman@comcast-dot-net.invalid> - 2019-07-31 11:02 -0400
Re: IntStream.rangeClosed() Eric Douglas <e.d.programmer@gmail.com> - 2019-07-31 08:39 -0700
Re: IntStream.rangeClosed() Martin Gregorie <martin@mydomain.invalid> - 2019-07-31 16:46 +0000
Re: IntStream.rangeClosed() Eric Douglas <e.d.programmer@gmail.com> - 2019-07-31 10:16 -0700
Re: Inclusive or exclusive array Marcel Mueller <news.5.maazl@spamgourmet.org> - 2019-07-30 23:21 +0200
Re: Inclusive or exclusive array Arne Vajhøj <arne@vajhoej.dk> - 2019-07-30 19:43 -0400
csiph-web