Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 06 Feb 2013 12:18:07 -0600 Date: Wed, 06 Feb 2013 18:18:04 +0000 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: compare several boolean =?windows-1252?Q?matrix=92s?= References: <8f60207e-f848-490b-a402-7cc1aba657e9@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 30 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-gqZp73nrKroxjPTq65V/tJTb26s0npEP9lS0JawW0Arm7uupMfWD33rKKb4CBvYfiTQM4UAwuYAyWIv!l+8NnZg2aWexu0OWdLDB1hfmDs5f/0Pujt7BKi6htXiydBj6sVTvx5aJiyDkJfJZ+1sMi5tzsUg= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2288 Xref: csiph.com comp.lang.java.programmer:22177 On 06/02/13 17:29, Keivan Jafari wrote: > Den onsdagen den 6:e februari 2013 kl. 18:19:58 UTC+1 skrev lipska the kat: >> On 06/02/13 16:42, Keivan Jafari wrote: [snip] > I'm too old and busy! > Please stick to the problem, take it as a challenge! What is it with you Scandinavian types ? I'll give you the benefit of the doubt this one time only. http://pastebin.com/iNpSxjJd This is a starting point only. There is no error handling minimal comments and lots of assumptions made. Eric Sosman also gave you an outline solution upthread. I have provided you with a simple working solution that you can build upon. The result matrix is filled with the '1 counts' at each position The rest is up to you. lipska -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun