Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: The greeting code in Java Date: Sun, 19 Jun 2011 11:01:30 -0400 Organization: A noiseless patient Spider Lines: 21 Message-ID: References: <3d6aab49-9a4a-4614-af12-bb1c95bebbe7@w4g2000yqm.googlegroups.com> <4dfdf77e$0$4132$426a74cc@news.free.fr> <06cf6f85-5473-47da-b599-de2e7f81976d@d1g2000yqm.googlegroups.com> <125bbd94-dca2-4692-8c18-3c80d8717048@c41g2000yqm.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 19 Jun 2011 14:56:38 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="yplGUUrGzpiV4sv58weMcA"; logging-data="31181"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187u/iIX+wxgydoaC8VUHRZkN8OwlhaetA=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: <125bbd94-dca2-4692-8c18-3c80d8717048@c41g2000yqm.googlegroups.com> Cancel-Lock: sha1:XAX/1lOVhDPL6umEIwghfYuw1Bk= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5379 On 06/19/2011 10:17 AM, Saeed Amrollahi wrote: > On Jun 19, 5:13 pm, Jeff Higgins wrote: >> On 06/19/2011 09:44 AM, Saeed Amrollahi wrote:> On Jun 19, 4:19 pm, A ris wrote: >> >>> From point of educational view, do you think my code or your code >>> is as simple as the C++ version? >> >> What means simple? > > Well, in the case of C++ code, I have to > explain cin, cout, string and two overloaded operators:>> and<< > in the case of java one: I have to > explain, the stream class hierarchy, InputStreamReader, > BufferedReader, > in, string, new operator, final, the meaning of buffered, > readLine, ... > I believe the C++ code is simpler for a beginner. > What language does the beginner wish to learn?