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 Post— mKorbel 274what program reads and send some outPut
Jump to Post— steelshark 0Normally 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 …
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.