Friday, November 4, 2011

How do I access the value of a variable in one java cl and use it in another java cl in the same package?

In cl a, the user is asked to enter a value which is stored in the variable num. In cl two, i want to access the num variable and determine if the valued entered is odd. How do i do this. The methods in both cles are public. Please explain your answers in simplicity, for i am not an expert on java. Thank you.

No comments:

Post a Comment