Int len=is. Read (bytes);
System. The out. Println (new String (bytes, 0, len));
Error:
String () in the String always be applied to:
The Expected Parameters:
Actual Arguments:
Bytes (byte [])
0 (int)
Len (int)
CodePudding user response:
Byte [] buy=new byte [1024].Int len=is. Read (buy);
If (len & gt; 0 {
String String=new String (buy, 0, len);
System. The out. Println (" accept message="+ string);
}