| Author |
indexOf() of String
|
mi te
Greenhorn
Joined: Mar 09, 2006
Posts: 29
|
|
|
why the method of String, int indexOf(int ch), takes in an argument of type int? Why not the type char?
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24054
|
|
|
My guess: a historical mistake. Similar routines in the C language standard library take int arguments.
|
[Jess in Action][AskingGoodQuestions]
|
 |
 |
|
|
subject: indexOf() of String
|
|
|