package homework; import java.io.*; public class MusicLrc { public static void main(String[] args) { BufferedReader br = null; String[] cmd = new String[4]; cmd[0] = "cmd.exe"; cmd[1] = "/C"; cmd[2] = "start"; cmd[3] = "D:\\java_file/骁.mp3"; Runtime runtime = Runtime.getRuntime(); long lastTime = 0; try { runtime.exec(cmd); } catch (IOException e) { e.printStackTrace(); } try { Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } try { br = new BufferedReader(new FileReader(new File("./data/骁.lrc"))); String data = null; while ((data = br.readLine()) != null){ String lyric = data.substring(11); String time1 = data.substring(1
Java实现歌词解析
最新推荐文章于 2023-09-09 17:11:41 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)