1、去首0
String newStr = temp.replaceAll("^(0+)", "");
2、执行命令
Runtime.getRuntime().exec("adb pull /dev/graphics/fb0 C:/fb1")
本文介绍了一种去除字符串前导零的方法,并演示了如何通过Java运行时环境执行ADB命令来从设备中拉取文件。
1、去首0
String newStr = temp.replaceAll("^(0+)", "");
2、执行命令
Runtime.getRuntime().exec("adb pull /dev/graphics/fb0 C:/fb1")

被折叠的 条评论
为什么被折叠?