public class mHand {
/**
* @param args
*/public static int num =3;
public static void main(String[] args) {
b m=new b(num);
c g=new c();
m.aList[0]=g;
Type: Posts; User: jack_nutt
public class mHand {
/**
* @param args
*/public static int num =3;
public static void main(String[] args) {
b m=new b(num);
c g=new c();
m.aList[0]=g;
how can i make num visible in the other class?
public class mHand {
/**
* @param args
*/public static int num =3;
public static void main(String[] args) {
b m=new b();
c g=new c();
m.aList[0]=g;
i know, but how can i define num once such that i dont have to change it in the other calsses by declaring its value?
<code>public class mHandler
{
public static int num=4;
...............
...........
.........