hey folks need some help from programmers
I have an assignment to write my own string class with various methods
I understand that basically a string is an array of characters and i can store the string into an array by reading each character of the string and storing it in the array.
Problems I have:
I'm getting arrayoutofbounds errors for methods like concat and substring, when i'm pretty sure the approach I'm using, which make a new array of size equal to the 2 strings to be concated
and I'm not sure what lexicographically means, I think it's a fancy way of saying the way in which we determine is 2 terms are equal
I have an assignment to write my own string class with various methods
I understand that basically a string is an array of characters and i can store the string into an array by reading each character of the string and storing it in the array.
Problems I have:
I'm getting arrayoutofbounds errors for methods like concat and substring, when i'm pretty sure the approach I'm using, which make a new array of size equal to the 2 strings to be concated
and I'm not sure what lexicographically means, I think it's a fancy way of saying the way in which we determine is 2 terms are equal