What I am looking to do is delete a character at a position in an array. The array is called word.
removecharacter is an int
word is a an array that was formed from a string
There is a test program already written where the person can type in an int (removecharacter) which will give the position as to where in the array to delete the item
I think I am on the right track but am unsure on a certain line, which is the actual delete line. Any tips?
public boolean delCharAt(int removecharacter) {
if (removecharacter <= word.length && delete >= 0)
{
//I wish to delete the character at removecharacter
}
Any help on where to go from here? Thanks
deletevariable stand for?