Forums Register Login

Birthday Numerology help

+Pie Number of slices to send: Send

+Pie Number of slices to send: Send
I'm having a lot of issues trying to get the code to work I'm getting an error:

nladehoff_Numerology.java:149: error: orphaned case
case 1: System.out.printf ("=1= You will meet a new friend today.");
^
1 error
+Pie Number of slices to send: Send
Hi Nathan, and welcome to the Ranch!

Java is case sensitive, and all keywords are in lowercase. Look hard at the line before the one with the orphaned case.

Code posted here is much easier to read when you UseCodeTags. I'm adding them for you this time.
+Pie Number of slices to send: Send
... and that's not the only error, so get back to us if you're stuck again. But try it yourself first.
+Pie Number of slices to send: Send
just a side note:

This is why you should never write more than 2-3 lines of code before compiling and testing. If you had written the MINIMUM amount of code needed for a switch statement, you'd have found your problem much easier.
He does not suffer fools gladly. But this tiny ad does:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1239 times.
Similar Threads
Quick Question on a Numerology Report
cannot find symbol inside String?
How do I turn this object into an array....
Trying to create OO based bank app
Date accessor method error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:25:27.