📜  java代码示例中的indexof是什么

📅  最后修改于: 2022-03-11 14:52:10.397000             🧑  作者: Mango

代码示例1
IndexOf() will return a integer of what position the Object is in the data.
example:
    list.indexOf("List Object 2"); will return the index of the String.
    "String text".indexOf("r"); will return 2.