Program reads in a word and outputs the last character then a "," then the last 2 characters of the word
tmcculloch 0 Newbie Poster
Recommended Answers
Jump to PostNormally i don't do homework assignments, but hey , i'm in a good mood..
I haven't tested this code, but i think it should do the trick.String input = "dog"; String output = ""; for (int i = (input.length() - 1); i >= 0; i--) output …
Jump to PostNope, doesn't work - and as a general rule we don't just hand students completed solutions to their homework problems.
All 5 Replies
mKorbel 274 Veteran Poster
tmcculloch 0 Newbie Poster
steelshark 0 Junior Poster in Training
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
steelshark 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.