每日随笔

1.安装完idea之后, 若电脑没有安装jdk8.0 ,那么会自带安装11.0 ,这样会造成很多早期jar包不兼容

  旧的java程序将无法找到所需要的包.详见Clean类

2. 拆分长类型-(Youtube视频各个信息,此处仅提取相关视频id的内容)

package com.company;

public class Main {

public static void main(String[] args) {
String s1 = "LKh7zAJ4nwo\tTheReceptionist\t653\tEntertainment\t424\t13021\t4.34\t1305\t744\tDjdA-5oKYFQ\tNxTDlnOuybo\tc-8VuICzXtU\tDH56yrIO5nI\tW1Uo5DQTtzc\tE-3zXq_r4w0\t1TCeoRPg5dE\tyAr26YhuYNY\t2ZgXx72XmoE\t-7ClGo-YgZ0\tvmdPOOd6cxI\tKRHfMQqSHpk\tpIMpORZthYw\t1tUDzOp10pk\theqocRij5P0\t_XIuvoH6rUg\tLGVU5DsezE0\tuO2kj6_D8B4\txiDqywcDQRM\tuX81lMev6_o";
String [ ] array = s1.split("\t");
try{
for (int i = 9; i <s1.length();i++) {
System.out.println(array[i]);
}
}
catch (Exception ArrayIndexOutOfBoundsException){
System.err.println("指针溢出但是无大碍!");
}


}
}

 


 

 
posted @ 2019-09-06 00:54  挪威森林猫Zzz  阅读(180)  评论(0编辑  收藏  举报