Path: csiph.com!news.mixmin.net!news.albasani.net!.POSTED!not-for-mail From: Sebastian Newsgroups: comp.lang.java.programmer Subject: Re: A small challenge at beginner's level Date: Tue, 8 Aug 2017 22:59:54 +0200 Organization: albasani.net Lines: 18 Message-ID: References: <199fd5af-e4a2-4451-97bf-0e19ad9fc2d9@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net KcorgOdPQZ3oTZJx5F1WEIyFTtTGZfhujf+2zeN9XB03YO45QO+5MPSi7/rHrh9sI3vZ0FvzHYQ2aONmlTO07g== NNTP-Posting-Date: Tue, 8 Aug 2017 20:59:54 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="pkc2xIGJ7OumUN4PG66yiZgAwSDPAep1QwxL2cwFnDjqA5PmKuItPjKZ3vyrneWR44F1RSGDW3QHEFKR5DG1K8bWvdgiodrHwLctlKE6u6djJN6Bbg6b87cwfTKL9SNO"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: <199fd5af-e4a2-4451-97bf-0e19ad9fc2d9@googlegroups.com> Cancel-Lock: sha1:xHAd14OehFDoOYpiUq/QO8oXWU8= Xref: csiph.com comp.lang.java.programmer:37090 Am 08.08.2017 um 17:01 schrieb Eric Douglas: > On Thursday, August 3, 2017 at 9:47:12 AM UTC-4, Andreas Leitgeb wrote: >> String.format("you have%5.5s.",String.format("%"+(1+4*Math.round(Math.random()))+".1s"," lost")+"won") >> >> certainly newbie level ;-) > > Stefan's posts don't show up in Google Groups, so I'd like to see the original full question. > The first simple beginner's challenge should of course be the FizzBuzz test. You can get into deep waters with FizzBuzz. You could even teach an entire undergraduate course about programming principles with it. See for example http://www.tomdalling.com/blog/software-design/fizzbuzz-in-too-much-detail/ -- Sebastian