Forums Register Login

unable to detect and correct d error..plss help

+Pie Number of slices to send: Send
this is stack implementation using java
the error occur in 74 line when while(!stack.isEmpty()) is called.
it says ';' expected...m unable to detect dis. ..please anyone can correct d mistake...

here is d code..


+Pie Number of slices to send: Send
You're using a keyword that doesn't exist. (Hint: Java is case-sensitive.)
+Pie Number of slices to send: Send
Welcome to the Ranch!

Please:
1) UseCodeTags next time. I'll add them for you this time.
2) UseRealWords. "d", "dis", "m unable" should be "the", "this" and "I am unable".
+Pie Number of slices to send: Send
Also format you code properly. Use indentations and blank lines to group related lines of code (methods for instance).
Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1061 times.
Similar Threads
Khalid Mughal - Example 1.3
Stacks Need Help
Stacks using Arrays
getting output without creating object ?
infix to postfix, need help catching errors such as having extra parenthesis
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:59:35.