I am just wondering if there is any difference between the semantics of offset and index when indicating the location where we can insert the specified argument (be it of type String, Object, char[], etc). For example, all of the two-argument insert() overloaded methods refer to that location as "offset". However, this one:
public StringBuilder insert(int index, char[] str, int offset, int len)
uses "index" to refer to the position in the string where the insertion takes place. Technically, I believe the correct term should be "offset" but just wondering why two different terms have been used by the class designer(s) for, basically, the same action.
Thank you.