Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail From: Sebastian Newsgroups: comp.lang.java.programmer Subject: Re: What is your favorite WC++IETJ? Date: Thu, 30 Apr 2015 14:52:28 +0200 Organization: albasani.net Lines: 26 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net W716YGpLradzd8o6Xo5wUEfX/YFKtxD1ttdCG+YdMEGoLeT2zb/WunTfD3abH/fX9buIrrKS/c2F/6Anm8CeVg== NNTP-Posting-Date: Thu, 30 Apr 2015 12:52:28 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="NKYfqjHf3Ig4218UmhQjxBCL+jP6r08EfGdhEQIP2w4NnfEJWyR8k/da3Q2qtMvbrXDgbpDULkUBf8U+Yecl89UMlyG8kPurT49c1ppWSZXOUjKTRLGnXPCA9zshG14i"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: Cancel-Lock: sha1:+SMduGsLgVZbhXQ+7Z0yfjWUBCg= Xref: csiph.com comp.lang.java.programmer:31628 Am 30.04.2015 13:44, schrieb Stefan Ram: > An WC++IETJ is something »where C++ is easier than Java«. > [snip] > auto const result = new java.util.HashSet< java.lang.Character >(); > > Java is so difficult, beginners just can't understand > why they have to write everything twice: > > final java.util.Set< java.lang.Character >result > = new java.util.HashSet< java.lang.Character >(); [snip] Since Java 7, that would be Set result = new HashSet<>(); and there's really no repetition. > > What are your favorite WC++IETJs? Command line input is more cumbersome with Java, for example it is not possible to read an int directly from stdin, you need a Reader (or Scanner) and need to convert from String to int yourself. However, command line interaction is atypical for most Java applications. -- Sebastian