Java & Alg