Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Gene Wirchenko Newsgroups: comp.lang.java.programmer Subject: Re: proper use of .java files (layout) Date: Mon, 17 Dec 2012 21:10:58 -0800 Organization: A noiseless patient Spider Lines: 27 Message-ID: References: <20fa5c05-6fcc-47ed-9e80-a44975887928@googlegroups.com> <50cfcd0b$0$293$14726298@news.sunsite.dk> <50cfd4b9$0$295$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: mx04.eternal-september.org; posting-host="95789bcd602b4527561dc0cb1c85cae5"; logging-data="13447"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+i3xsVRgqwiMK8YFAm67lUYYYAJ7+ZSJA=" X-Newsreader: Forte Agent 4.2/32.1118 Cancel-Lock: sha1:XZbBHH7h1eTgkJbcRWYaMcC6YGM= Xref: csiph.com comp.lang.java.programmer:20429 On Mon, 17 Dec 2012 21:28:07 -0500, Arne Vajhøj wrote: >On 12/17/2012 9:18 PM, Gene Wirchenko wrote: >> On Mon, 17 Dec 2012 20:55:21 -0500, Arne Vajhøj >> wrote: >> >> [snip] >> >>> 13 distinct values with an order but no numeric values >>> seems a perfect fit for enum to me. >> >> An enum does not guarantee an order. > >In the Java I use enums have a compareTo method. And how would you handle the aces? A-6-4-3-2 is ace high, but A-5-4-3-2 is actually 5-4-3-2-A (a five-high straight). Human systems can be remarkably exceptional if I may use the word in the sense of "having an exception". Sincerely, Gene Wirchenko