[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Carey Brown wrote:Why 7 nested loops? For a 'result' of 10, that would mean the inner logic would be executed 10 million times.
Your variables: A, B, C, ... are all defined with a block level scope and would therefore not be accessible outside of the block. Also, don't use leading upper-case letters for variable names.
Fix indentation.
Not necessarily. I have seen that before; I think there is a bug in the forum software which alters < to >< or alters > to ><. I think your correction to < throughout is correct.Carey Brown wrote: . . . Has a syntax error. No operator '><'.
John Sing wrote:Forgive me for asking so many questions
but lets say I define the strings before the nested loops, then how do I make the message box display the string each time its supposed to?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Campbell Ritchie wrote:This is what you want. It tells you how to turn several Strings into a pretty‑print String...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Bad spelling there. The number should be spelt s‑e‑v‑e‑nWinston Gutkowski wrote:. . . Trust Java to incorporate it two releases too late. . . .
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|