Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #1993

Re: Data Encapsulation Question

From subhabangalore@gmail.com
Newsgroups comp.lang.java.help
Subject Re: Data Encapsulation Question
Date 2012-08-11 23:09 -0700
Organization http://groups.google.com
Message-ID <88f0b2aa-7cfc-4d91-89e3-ebb731178182@googlegroups.com> (permalink)
References <b55b1e7a-c8d8-453a-8bdb-5a1745f23204@googlegroups.com> <d5304ca1-327f-4395-bce9-bca0a5c67845@googlegroups.com> <6jbd28tbfbfrvgl8hm8b6ironhgpggcngo@4ax.com> <bc385299-a67d-4af1-befb-899b2b48af55@googlegroups.com> <0659ec43-ed89-4e5e-bb3e-e7b4347ed319@googlegroups.com>

Show all headers | View raw


On Sunday, August 12, 2012 2:10:45 AM UTC+5:30, (unknown) wrote:
> On Sunday, August 12, 2012 1:59:30 AM UTC+5:30, (unknown) wrote:
> 
> > On Sunday, August 12, 2012 12:42:14 AM UTC+5:30, Roedy Green wrote:
> 
> > 
> 
> > > On Fri, 10 Aug 2012 12:13:00 -0700 (PDT), subhabangalore@gmail.com
> 
> > 
> 
> > > 
> 
> > 
> 
> > > wrote, quoted or indirectly quoted someone who said :
> 
> > 
> 
> > > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > >Thanks it worked. The code is working but only "Size:" of System.out.println("Size:"+b.getsize()); is giving error, if you drop it --it is coming nicely.
> 
> > 
> 
> > > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > Just copy and paste the output of the program. The code looks fine.
> 
> > 
> 
> > > 
> 
> > 
> 
> > > -- 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > Roedy Green Canadian Mind Products http://mindprod.com
> 
> > 
> 
> > > 
> 
> > 
> 
> > > A new scientific truth does not triumph by convincing its opponents and making them see the light,
> 
> > 
> 
> > > 
> 
> > 
> 
> > > but rather because its opponents eventually die, and a new generation grows up that is familiar with it.
> 
> > 
> 
> > > 
> 
> > 
> 
> > > ~ Max Planck 1858-04-23 1947-10-04
> 
> > 
> 
> > 
> 
> > 
> 
> > Dear Sir,
> 
> > 
> 
> > Thank you for your kind concern. The following error message is coming:
> 
> > 
> 
> > Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
> 
> > 
> 
> > 	The method getsize() is undefined for the type Box
> 
> > 
> 
> > 
> 
> > 
> 
> > 	at BoxMain.main(BoxMain.java:16)
> 
> > 
> 
> > Regards,
> 
> > 
> 
> > Subhabrata.
> 
> 
> 
> Dear Group,
> 
> No. The Code had a very silly mistake. If you see, I am writing System.out.println("Size:"+b.getsize());  while I am calling, but while declaring I am writing it as,
> 
> public void setSize(int newSize) { 
> 
> 	size = newSize; 
> 
> 	} 
> 
> The 'S' of "setSize" is capital here. 
> 
> I changed and worked fine. When all of you were saying the syntax and structure is fine, I tried to zoom into the code. Thank you all for your kind time.
> 
> By the way, Lew was trying to suggest me something regarding command line, Ant, etc. I am bit curious to know them. If you can help.
> 
> 
> 
> Regards,
> 
> Subhabrata.

Dear Sir,

Thank you for your suggestion. But some how I feel docs.oracle is not very nicely written. I generally use my sense of C and Python compare check good web tutorials code and learn. I am very new to this language and pretty inquisitive. My works are generally Natural Language Processing,Statistical Modeling,Machine Learning and Software Engineering if you can kindly also suggest which libraries also I have to learn for them. 

Regards,
Subhabrata.  

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Data Encapsulation Question subhabangalore@gmail.com - 2012-08-10 08:49 -0700
  Re: Data Encapsulation Question Joerg Meier <joergmmeier@arcor.de> - 2012-08-10 18:30 +0200
  Re: Data Encapsulation Question Jeff Higgins <jeff@invalid.invalid> - 2012-08-10 12:44 -0400
  Re: Data Encapsulation Question subhabangalore@gmail.com - 2012-08-10 12:13 -0700
    Re: Data Encapsulation Question Lew <lewbloch@gmail.com> - 2012-08-10 12:32 -0700
      Re: Data Encapsulation Question subhabangalore@gmail.com - 2012-08-10 12:58 -0700
        Re: Data Encapsulation Question Lew <lewbloch@gmail.com> - 2012-08-10 15:37 -0700
          Re: Data Encapsulation Question subhabangalore@gmail.com - 2012-08-10 21:59 -0700
    Re: Data Encapsulation Question Roedy Green <see_website@mindprod.com.invalid> - 2012-08-11 12:12 -0700
      Re: Data Encapsulation Question subhabangalore@gmail.com - 2012-08-11 13:29 -0700
        Re: Data Encapsulation Question Joerg Meier <joergmmeier@arcor.de> - 2012-08-11 22:35 +0200
          Re: Data Encapsulation Question subhabangalore@gmail.com - 2012-08-11 13:46 -0700
            Re: Data Encapsulation Question subhabangalore@gmail.com - 2012-08-11 14:13 -0700
              Re: Data Encapsulation Question Jeff Higgins <jeff@invalid.invalid> - 2012-08-11 17:29 -0400
        Re: Data Encapsulation Question subhabangalore@gmail.com - 2012-08-11 13:40 -0700
          Re: Data Encapsulation Question subhabangalore@gmail.com - 2012-08-11 23:09 -0700
            Re: Data Encapsulation Question Jeff Higgins <jeff@invalid.invalid> - 2012-08-13 08:24 -0400
        Re: Data Encapsulation Question Roedy Green <see_website@mindprod.com.invalid> - 2012-08-12 07:50 -0700
          Re: Data Encapsulation Question subhabangalore@gmail.com - 2012-08-12 12:59 -0700
          Re: Data Encapsulation Question subhabangalore@gmail.com - 2012-08-12 12:55 -0700
  Re: Data Encapsulation Question Lew <lewbloch@gmail.com> - 2012-08-10 12:31 -0700
  Re: Data Encapsulation Question Roedy Green <see_website@mindprod.com.invalid> - 2012-08-11 12:08 -0700
  Re: Data Encapsulation Question subhabangalore@gmail.com - 2012-08-12 13:03 -0700
    Re: Data Encapsulation Question Lew <noone@lewscanon.com> - 2012-08-12 13:24 -0700
      Re: Data Encapsulation Question subhabangalore@gmail.com - 2012-08-12 21:40 -0700

csiph-web