A Java test, please commplete it by yourselves