Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #18244
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!53ab2750!not-for-mail |
|---|---|
| From | "yanamandra" <yanamandra@1:261/38.remove-fzq-this> |
| Subject | Re: Need help with a program. |
| Message-ID | <50327C3E.57169.calajapr@time.synchro.net> (permalink) |
| X-Comment-To | Leif Roar Moldskred |
| Newsgroups | comp.lang.java.programmer |
| In-Reply-To | <50327C3D.57168.calajapr@time.synchro.net> |
| References | <50327C3D.57168.calajapr@time.synchro.net> |
| X-FTN-AREA | COMP.LANG.JAVA.PROGRAMMER |
| X-FTN-MSGID | 1:261/38 0a9fadf2 |
| X-FTN-REPLY | 1:261/38 e4bc52d3 |
| Content-Type | text/plain; charset=IBM437 |
| Content-Transfer-Encoding | 8bit |
| X-Gateway | time.synchro.net [Synchronet 3.16a-Win32 NewsLink 1.98] |
| Lines | 36 |
| Date | Mon, 20 Aug 2012 18:58:40 GMT |
| NNTP-Posting-Host | 69.21.70.65 |
| X-Complaints-To | news@tds.net |
| X-Trace | newsreading01.news.tds.net 1345489120 69.21.70.65 (Mon, 20 Aug 2012 13:58:40 CDT) |
| NNTP-Posting-Date | Mon, 20 Aug 2012 13:58:40 CDT |
| Organization | tds.net |
| Xref | csiph.com comp.lang.java.programmer:18244 |
Show key headers only | View raw
To: Leif Roar Moldskred From: yanamandra <venu.yanamandra@gmail.com> On Aug 20, 4:46 pm, Leif Roar Moldskred <le...@dimnakorr.com> wrote: > I'm afraid there's no way to get hold of the address or reference to a > primitive type in Java. To confirm that these are different variables > you have to settle for the fact that they contain different values. > . . . > > > Also, for the output I need, 40, 50 and 60, I will have to re-write the printall() function. Is that the only way? > > As long as the two i2 variables are private, the only way to solve it > is to override the printall() method in the extended class. A better > way to do it is to have the printall() method refer to public or > protected getter method and then override the getter method: > . . . > -- > Leif Roar Moldskred Thank you Lief. I will check that again. -Venu --- BBBS/Li6 v4.10 Dada-1 * Origin: Prism bbs (1:261/38) --- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Need help with a program. "Leif Roar Moldskred" <leif.roar.moldskred@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000
Re: Need help with a program. "yanamandra" <yanamandra@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000
Re: Need help with a program. "Leif Roar Moldskred" <leif.roar.moldskred@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000
Re: Need help with a program. "yanamandra" <yanamandra@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000
Re: Need help with a program. "Leif Roar Moldskred" <leif.roar.moldskred@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000
Re: Need help with a program. "yanamandra" <yanamandra@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000
Re: Need help with a program. "Lew" <lew@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000
csiph-web