#Help i need explain and example
1 messages · Page 1 of 1 (latest)
uh?
what is your question?
and what is:
mid (S,n1,n2)
?
pls share the whole context
And could you share what you've written? At first glance you want a substring and are passing in a start and end index?
Mid(S, 3, 2) S=Thomas
the answer is "om"
So it creates a substring of Thomas, starting at the third character (o), and of length 2.
but the explain is "returns a set of n2 characters starting at n1 in the string S"
i don't what is the meaning
if mid(S, 3, 5) with S = "Thomas" and mid(S, 2, 3) with S = "Thomas"
I'd expect the first one to give an indexoutofboundsexception