basic platformed programmed in java