Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Overloading methods question Date: Sat, 27 Oct 2018 07:43:29 -0400 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: <1b2bqd7oqzez6$.sfpve8lwmic2.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 27 Oct 2018 11:43:31 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="647b39c3b53edc15da6ffea0120939a5"; logging-data="13665"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JUGX5Fg2h/2cXa9HGZ0x0" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cancel-Lock: sha1:CcV1O9YTXC4psTbdMRyyjm4GG9A= In-Reply-To: Content-Language: en-US Xref: csiph.com comp.lang.java.programmer:38666 On 10/26/2018 10:10 PM, Rhino wrote: > [...] > Now that I've learned more about the classes and methods available in > the java.time.* classes, I've realized that I can do practically > anything I need to do directly in my programs in a single line. [...] > I previously had a method to determine if a date string like > "2018-10-26" met all the criteria to be a valid ISO date; it was well > over 100 lines long. [...] The java.time package arrived with Java 1.8 in 2011. The java.text.DateFormat and java.text.SimpleDateFormat classes have been around since -- well, since "I dunno, but they're described in my Java 1.1 O'Reilly book from 1997." Maybe you could benefit by spending a little more time reading before starting to code. "Those who will not learn from Javadoc are condemned to re-implement." -- esosman@comcast-dot-net.invalid Eight hundred sixteen days to go.