Join TSR now and get answers to all your questions about uniSign up now

Calling a value Watch

    • Thread Starter
    Offline

    0
    ReputationRep:
    In Java, I have to create two or more methods.

    What I can't understand is how to call a value of a variable into the second method from the first. For example, I create an Integer in my first method, but in my second method I need to use the same variable with the same value. I don't know how to do this.

    Sorry if this is hard to understand, I can't think of how to explain it better.
    K S
 
 
 
Poll
How are you feeling about Results Day?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Quick reply
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.