java - Creating a CharAt() method in the main class -
I got stuck on this section of code. The idea is to return the character in the given index without using string, stringbirders, and wrapper classes .
What do I have : " this.data " as a
char []
data for me " MyOwnString
" Object
I understand how the main class code should look like:
public char charAt (int index) {this Create a new letter from the data, then use the charAt () method}}
to select the given index, the string will be in a tester class. Without any easy shortcuts, some guidance is required on this challenging homework work.
About
return data [index];
?
Comments
Post a Comment