The general data structure with java