I dont have idea how to show "kim chong" words backward(gnohC mik). anyone have idea for this quenstion pls share thanks!

Recommended Answers

All 2 Replies

first convert the string to char array and display the elements of that array backwards. There is a method in the String class which converts that string into char array.

JoCamps is correct, as a hint for how to display the array backwards, consider writing a for loop that starts at the ending index of the array and goes backwards, printing out the element at each index.

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.