Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
"}"特定の文字列を見つけた後、最初の右中括弧を見つける必要があります。文字列は次のとおりです。
"}"
........."メッセージ": "RM06050" }]
最初に " RM06050 " を見つけ、次に最初の右中括弧を見つけてそこに文字列を追加する必要があります。文字列と中かっこの間の空白文字は異なる場合があります...
これを試して
int i = s.indexOf('}', s.indexOf("\"RM06050\""));