Java Cannot Make Static Reference Error Function