string using java??please help..the problem is..inputting your name then reverse it.
olive.ventura 0 Newbie Poster
Recommended Answers
Jump to PostPseudo code can be a useful tool for explaining algorithms etc, but by doing that you have still deprived the OP of the chance to learn how to solve the logical problem for themselves. Follow Norm's frequent approach of getting the OP to do it by hand on a piece …
Jump to Postalso, NeiXude, Strings can't be "manipulated", they're immutable.
make sure you explain correctly what you are doing.
Jump to Postuse toCharArray to read your String into a char array
iterate over them using a simple for loop, after you created a new array of chars of the same size
set the first element of the first array in the last element of the second array
set the second element …
Jump to Posthave you had java both these years?
Jump to PostI can create a 'sample program' but that's basically giving you the code. try looking at the pseudo code I gave you, see if you can find the components to use to do that, and decide on the steps, try and write that, and post that here.
All 18 Replies
NormR1 563 Posting Sage Team Colleague
NeiXude 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
NeiXude 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
NeiXude 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
stultuske 1,116 Posting Maven Featured Poster
olive.ventura 0 Newbie Poster
olive.ventura 0 Newbie Poster
stultuske 1,116 Posting Maven Featured Poster
olive.ventura 0 Newbie Poster
olive.ventura 0 Newbie Poster
stultuske 1,116 Posting Maven Featured Poster
olive.ventura 0 Newbie Poster
olive.ventura 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
stultuske 1,116 Posting Maven Featured Poster
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.