So I need to make a java program that reverse or replace firstor lastchar or remove char
Fantastic news! We've Found the answer you've been seeking!
Question:
So I need to make a java program that reverse or replace firstor lastchar or remove char from user's string input.
length, concat, charAt, substring, and equals (orequalsIgnoreCase) thses are the string method that only I canuse
for example
if user put asdf asdf and chose reverse
input should be fdsa fdsa
if user put asdf asdf and chose replace first a with b
input should be bsdf asdf
if user put asdf asdf and chose remove a and 2
input should be asdf sdf (remove 2nd 'a')
aaaaddd remove all 'a' = ddd
Since I cannot use replace or remove method I have no idea howto start this coding...
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: