huqi's java code