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.
私の Java メソッドの 1 つが段落文字列を返します。文字列に省略記号 (...) が含まれているかどうかを確認するにはどうすればよいですか?
myString.contains ("...");
それはドキュメントにあります。
試す:
if ( myString.indexOf("...") != -1 ) { // string contains ellipsis }