Java: Funl Assignment