It depends but there are a few ways.
If you're in the same object you could use a normal member variable, if you're calling between objects you could just provide getters and setters for that variable. Alternately if the two methods are related just provide the value as a parameter.
When you talk about between one function and another function it's not clear whether you mean methods in the same class or between different classes. Maybe if you're thinking about functions in Java and not thinking about classes, objects and methods, you would find it useful to go over the basic object orientation stuff as well. I know I had that problem often when I was making the transition from procedural to object-oriented programming. It's a while ago now, but this series of tutorials helped me a lot with that.