import java.util.Arrays; public class Main { public static void main(String[] args) { byte[] tmp = {'a','c',' ','e','c','h','o',' ','a'}; byte[] tmp2 = Arrays.copyOfRange(tmp,1,5); System.out.println("xxx"); } }
import java.util.Arrays; public class Main { public static void main(String[] args) { byte[] tmp = {'a','c',' ','e','c','h','o',' ','a'}; byte[] tmp2 = Arrays.copyOfRange(tmp,1,5); System.out.println("xxx"); } }