JAVA summary

transfer the digital string to different types
String s = "110";
byte b = Byte.parseByte(s);
int i = Interger.partInt(s);


Check whether 2 arrays are equals
equals used to compare single value
== used to compare the address
use Arrays.equals instead
        assertTrue("", Arrays.equals(expect, CommandHelper.parseCertFromMap(dataMap)));

你可能感兴趣的:(java)