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


Groups > comp.lang.java.programmer > #37732

Re: Please help

From Kiwi User <martin@mydomain.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Please help
Date 2017-12-07 21:22 +0000
Organization albasani.net
Message-ID <p0cbf2$guu$1@news.albasani.net> (permalink)
References (3 earlier) <93e9bca8-c0e8-4a12-bb30-9f5548f611c3@googlegroups.com> <200bfada-8168-4bf1-88de-8cb9016aec1a@googlegroups.com> <367d1efe-674a-4e85-9887-816ebd57affe@googlegroups.com> <p0bvri$mki$2@news.albasani.net> <4cd638e1-3341-411e-a1f5-d27b121ca363@googlegroups.com>

Show all headers | View raw


On Thu, 07 Dec 2017 10:14:09 -0800, Eric Douglas wrote:

> On Thursday, December 7, 2017 at 1:04:56 PM UTC-5, Kiwi User wrote:
>> > Did you compile this with your BlueJ to see your error?
>> > All I'm seeing wrong with this is your getter method forgetting to
>> > declare the return type.
>> >
>> There's an error in the constructor too: no double quotes round the
>> String constant.
>> 
>> 
>> 
> That is actually a runtime error.  It does look like the instructions
> say to initialize it to the string constant "X00000" while this code is
> initializing the String variable to the String value of the int variable
> X00000 which is not assigned.

Nope. Line 11 gives a compile-time error (javac 1.8.0_91). 
Try it yourself.


-- 
Martin    | martin at
Gregorie  | gregorie
          | dot org

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Please help rustboy86@gmail.com - 2017-12-07 06:02 -0800
  Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 07:10 -0800
    Re: Please help rustboy86@gmail.com - 2017-12-07 07:33 -0800
      Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 08:22 -0800
        Re: Please help rustboy86@gmail.com - 2017-12-07 08:31 -0800
          Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 08:54 -0800
            Re: Please help rustboy86@gmail.com - 2017-12-07 09:29 -0800
              Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 10:11 -0800
            Re: Please help Kiwi User <martin@mydomain.invalid> - 2017-12-07 18:04 +0000
              Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 10:14 -0800
                Re: Please help rustboy86@gmail.com - 2017-12-07 10:36 -0800
                Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 10:44 -0800
                Re: Please help rustboy86@gmail.com - 2017-12-07 11:04 -0800
                Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 13:35 -0800
                Re: Please help Kiwi User <martin@mydomain.invalid> - 2017-12-07 21:22 +0000
                Re: Please help Eric Douglas <e.d.programmer@gmail.com> - 2017-12-07 13:32 -0800
                Re: Please help Kiwi User <martin@mydomain.invalid> - 2017-12-07 21:48 +0000

csiph-web