1) Whenever you have a new question, then start a new thread i.e. a new topic. But if your doubt is regarding the same concept which an earlier topic had then you can continue in that topic.
Since here you are having a new code, i request you to start a new topic.
2) Whenever you are posting any code here, first press the "code" button which you can see when you are posting a question. After pressing the code button paste your code between the code tags. You are pretty new so this happens.
3) As far as your current code is concerned, i can see 2 problems
See you have written x = x 6
ii) After the class name you have put brackets (parenthesis) i.e.
ryan almadin wrote:Hi i have a question on this code...
Please UseCodeTags (←click) when you are posting code. I've edited yours this time, and see how much better it looks?.
Please read this page thoroughly before you post again, because one of your lines was far too long. I broke it up for you.
Bats fly at night, 'cause they aren't we. And if we tried, we'd hit a tree -- Ogden Nash (or should've been).
Articles by Winston can be found here
Do you mean how does the puzzle work? What you need to do is to get a pencil and paper and write down the values of all the variables during each iteration of the loop. Then you can see how it works. Note many of these puzzles have little twists in, which are intended to confuse you, so you must be careful.
Joined: Jul 19, 2012
Thanks Sheriff i understand now the Puzzle and i solve it clearly last 2 days thats correct have a little twist but i careful to understand so im happy i solve the problem im study now HFJ @dot com class and im very glad to be part in this family ranch because you guys help me understanding the java and helping me some of my question to @soni and @Gutkowski apologies me on my mistake . thanks
Joined: Feb 03, 2011
ryan almadin wrote: i understand now the Puzzle and i solve it clearly
Joined: Oct 13, 2005
Keep reading, and you will be better able to help the next person who has difficulty with such a puzzle.