i need someone's help for a java program.
O.K. Here is the question I was given:
Given the three parameters: 1) an array of chars named letters, 2) a beginning letter named beg, 3) and an ending letter named end, write a method arrayOfLetters that will return a new array of chars that contains all the characters in the array letters that are between beg and end (inclusively) found in letters.
Here is what I have so far:
public char[] arrayOfLetters (char[] letters, char beg, char end)
{
char[] temp;
for (int x=0; x<letters.length; x++)
}
I just need someone to show me how to finish the rest, you can add me on xfire: fatmarik .
O.K. Here is the question I was given:
Given the three parameters: 1) an array of chars named letters, 2) a beginning letter named beg, 3) and an ending letter named end, write a method arrayOfLetters that will return a new array of chars that contains all the characters in the array letters that are between beg and end (inclusively) found in letters.
Here is what I have so far:
public char[] arrayOfLetters (char[] letters, char beg, char end)
{
char[] temp;
for (int x=0; x<letters.length; x++)
}
I just need someone to show me how to finish the rest, you can add me on xfire: fatmarik .