my java codes from base to high