String sbip = request.getParameter("sbip");
String[] ss = sbip.split("\\.");
for (int i = 0; i < ss.length; i++){
ss[i].getBytes();
}
int pIndex = 0; int pSize = 0; try {
int timeOut = 3000; byte[] ip = new byte[] {(byte) 192, (byte) 168, (byte) 1, (byte) 1 };这个是要从前台获取ip然后分割检测是否能够pin通,但是,String
怎么转换成BYTE啊
String[] ss = sbip.split("\\.");
for (int i = 0; i < ss.length; i++){
ss[i].getBytes();
}
int pIndex = 0; int pSize = 0; try {
int timeOut = 3000; byte[] ip = new byte[] {(byte) 192, (byte) 168, (byte) 1, (byte) 1 };这个是要从前台获取ip然后分割检测是否能够pin通,但是,String
怎么转换成BYTE啊