simply let it do the job in Java