Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!c20g2000vbv.googlegroups.com!not-for-mail From: Saeed Amrollahi Newsgroups: comp.lang.java.programmer Subject: Re: The greeting code in Java Date: Sun, 19 Jun 2011 12:06:44 -0700 (PDT) Organization: http://groups.google.com Lines: 26 Message-ID: <45250777-03f2-4391-b756-d8ecbf631f28@c20g2000vbv.googlegroups.com> 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> NNTP-Posting-Host: 188.34.82.250 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1308511836 12220 127.0.0.1 (19 Jun 2011 19:30:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 19 Jun 2011 19:30:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c20g2000vbv.googlegroups.com; posting-host=188.34.82.250; posting-account=x4Lj4AoAAABzOb3wqfl972VDu6OmtJ9j User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17,gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5400 On Jun 19, 7:01=A0pm, Jeff Higgins wrote: > On 06/19/2011 10:17 AM, Saeed Amrollahi wrote: > > > On Jun 19, 5:13 pm, Jeff Higgins =A0wrote: > >> On 06/19/2011 09:44 AM, Saeed Amrollahi wrote:> =A0On Jun 19, 4:19 pm,= A ris =A0 =A0wrote: > > >>> =A0 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:>> =A0and<< > > 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? Actually, I am going to prepare a seminar under the title: C++ vs. Java I try to compare C++ and Java from point of programming view.