Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Andreas Leitgeb Newsgroups: comp.lang.java.programmer Subject: Re: getFibonacciArray() cannot call getFibonacciArray(int from) Date: Fri, 2 Aug 2019 06:51:16 -0000 (UTC) Organization: A noiseless patient Spider Lines: 16 Message-ID: References: <87o91amsyc.fsf@munus.decebal.nl> Reply-To: avl@logic.at Injection-Date: Fri, 2 Aug 2019 06:51:16 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="bdd069effbe79c1de347c71babb60f34"; logging-data="26936"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cD0GMUzDKkPTe05Hd8TVy" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:iUXgXHZKNYBSEeprxhXw66sKtRs= Xref: csiph.com comp.lang.java.programmer:39060 Daniele Futtorovic wrote: > If I had to hazard a guess, I would say that in jshell, you can't > reference a method before you've declared it (lexically speaking). That was also my guess after reading Cecil's post. Then I tried it, and found out I know nothing about jshell. Whatever order I typed into it, it just gave continuation prompts or standard prompts. Sometimes it even went back to standard prompt before I typed the last close brace, and whatever I typed, I never got anything back. Even typing System.out.println(42); gave me nothing but an empty line and a new prompt... Most likely I've been doing something wrong...