i have one simple question for me to finish. and i dont know how? can someone here helps me/ Just accept a string into a text field,and sort the characters in the string and display the sorted string in another textfield. thanks.............
This question is too serious for MD. But since I just woke up... I'll let you figure out the text field part, but once you have the String, you can call toCharAway() to get the character sequence as a char array, then call Arrays.sort() to sort the array, then you can pass the sorted array to a new String constructor and get a sorted string.
Originally posted by Mitchell Kave: i have one simple question for me to finish. and i dont know how?
If it's "simple" why dont u solve it urself. stop posting your homework here. this is the other homework this same person had posted a while back! http://www.coderanch.com/t/37176/md/Big-Help-Board [ June 07, 2002: Message edited by: swaroop shastri ]