This is java and php assignment