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

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -