Get Variable From Another Function In Java