JAVA summary

455 ワード

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)));