Testing some serial in java