📅  最后修改于: 2022-03-11 14:52:49.347000             🧑  作者: Mango
The java string indexOf() method returns index of given character value or substring. If it is not found, it returns -1. The index counter starts from zero.