transfer c char* to java string