/**
* 在str1中从start位置开始查找str2到end位置结束, 返回str2在str1的起始位置, -1表示查找失败
*/
public static int strstr(byte[] str1, byte[] str2, int start, int end)
{
int index1 = start;
int in...
//读取图片到字节数组(内存),然后返回写入的字节数组
//读取返回的字节数组,写入到文件
public class test{
public static void main(String[]args)
{
String path="C:/Users/10853/eclipse-workspace/h...