Replace Method Help!

Hi guys,

I'm having a bit of trouble with the replace method for my Java assignment. I'm supposed to get the user to enter a card number and suit and have the program print out that card with certain letters changed. But I'm having difficulties figuring out how I'm supposed to replace the letter "s" with "z" only if the "s" occurs at the very end of the name.

any help is appreciated! thanks

[417 byte] By [surelykka] at [2007-10-2 10:51:36]
# 1
You might try String endsWith("s").
ChuckBinga at 2007-7-13 3:10:40 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...