Java浠庡叆闂ㄥ埌瀹炴垬涔嬶紙20锛夊瓧绗︿覆涔?鏌ユ壘瀛楃涓叉渶鍚庝竴娆″嚭鐜扮殑浣嶇疆

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Java浠庡叆闂ㄥ埌瀹炴垬涔嬶紙20锛夊瓧绗︿覆涔?鏌ユ壘瀛楃涓叉渶鍚庝竴娆″嚭鐜扮殑浣嶇疆相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/rgba' title='rgba'>rgba   jdk   plugin   set   閫氳繃   ace   aws   zip   sources   

浠ヤ笅瀹炰緥涓垜浠€氳繃瀛楃涓插嚱鏁?strOrig.lastIndexOf(Stringname) 鏉ユ煡鎵惧瓙瀛楃涓?Stringname 鍦?strOrig 鍑虹幇鐨勪綅缃細

package Java_Learn.File;

public class SeacoastString {
    public static void main(String[] args) {
        String str1="Hello world ,Hello Runoob";
        int lastIndex=str1.lastIndexOf("Runoob");
        if (lastIndex==-1)
        {
            System.out.println("娌℃湁鎵惧埌瀛楃涓睷unoob");
        }
        else
        {
            System.out.println("Runoob瀛楃涓叉渶鍚庡嚭鐜扮殑浣嶇疆:"+lastIndex);
        }
    }
}

缁撴灉锛?/p>

"C:Program FilesJavajdk1.8.0_221injava.exe" "-javaagent:C:Program FilesJetBrainsIntelliJ IDEA 2019.3.3libidea_rt.jar=49408:C:Program FilesJetBrainsIntelliJ IDEA 2019.3.3in" -Dfile.encoding=UTF-8 -classpath "C:Program FilesJavajdk1.8.0_221jrelibcharsets.jar;C:Program FilesJavajdk1.8.0_221jrelibdeploy.jar;C:Program FilesJavajdk1.8.0_221jrelibextaccess-bridge-64.jar;C:Program FilesJavajdk1.8.0_221jrelibextcldrdata.jar;C:Program FilesJavajdk1.8.0_221jrelibextdnsns.jar;C:Program FilesJavajdk1.8.0_221jrelibextjaccess.jar;C:Program FilesJavajdk1.8.0_221jrelibextjfxrt.jar;C:Program FilesJavajdk1.8.0_221jrelibextlocaledata.jar;C:Program FilesJavajdk1.8.0_221jrelibext
ashorn.jar;C:Program FilesJavajdk1.8.0_221jrelibextsunec.jar;C:Program FilesJavajdk1.8.0_221jrelibextsunjce_provider.jar;C:Program FilesJavajdk1.8.0_221jrelibextsunmscapi.jar;C:Program FilesJavajdk1.8.0_221jrelibextsunpkcs11.jar;C:Program FilesJavajdk1.8.0_221jrelibextzipfs.jar;C:Program FilesJavajdk1.8.0_221jrelibjavaws.jar;C:Program FilesJavajdk1.8.0_221jrelibjce.jar;C:Program FilesJavajdk1.8.0_221jrelibjfr.jar;C:Program FilesJavajdk1.8.0_221jrelibjfxswt.jar;C:Program FilesJavajdk1.8.0_221jrelibjsse.jar;C:Program FilesJavajdk1.8.0_221jrelibmanagement-agent.jar;C:Program FilesJavajdk1.8.0_221jrelibplugin.jar;C:Program FilesJavajdk1.8.0_221jrelib
esources.jar;C:Program FilesJavajdk1.8.0_221jrelib
t.jar;C:appWorkSpace	argetclasses;C:Program Files (x86)scalalibscala-actors-2.11.0.jar;C:Program Files (x86)scalalibscala-actors-migration_2.11-1.1.0.jar;C:Program Files (x86)scalalibscala-library.jar;C:Program Files (x86)scalalibscala-parser-combinators_2.11-1.0.1.jar;C:Program Files (x86)scalalibscala-reflect.jar;C:Program Files (x86)scalalibscala-swing_2.11-1.0.1.jar;C:Program Files (x86)scalalibscala-xml_2.11-1.0.1.jar;C:
epositoryorgscala-langscala-library2.11.0scala-library-2.11.0.jar" Java_Learn.File.SeacoastString
Runoob瀛楃涓叉渶鍚庡嚭鐜扮殑浣嶇疆:19

Process finished with exit code 0

 

以上是关于Java浠庡叆闂ㄥ埌瀹炴垬涔嬶紙20锛夊瓧绗︿覆涔?鏌ユ壘瀛楃涓叉渶鍚庝竴娆″嚭鐜扮殑浣嶇疆的主要内容,如果未能解决你的问题,请参考以下文章

灏忕▼搴忔鏋禬ePY 浠庡叆闂ㄥ埌鏀惧純韪╁潙鍚堥泦

IntelliJ IDEA 浠庡叆闂ㄥ埌涓婄樉鏁欑▼锛?019鍥炬枃鐗堬紒

鍔犳帹瀹炴垬涔嬪叏鏍圝S绁炵粡缃戠粶

13涓猅ensorflow瀹炶返妗堜緥锛屾暀浣犲叆闂ㄥ埌杩涢樁

python3+Neo4j+flask,姹借溅琛屼笟鐭ヨ瘑鍥捐氨椤圭洰瀹炴垬

Redis 绉掓潃瀹炴垬