Search:

Type: Posts; User: jack_nutt

Search: Search took 0.10 seconds.

  1. Replies
    11
    Views
    1,826

    Re: array element declaring problem

    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;
  2. Replies
    11
    Views
    1,826

    Re: array element declaring problem

    how can i make num visible in the other class?
  3. Replies
    11
    Views
    1,826

    Re: array element declaring problem

    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;
  4. Replies
    11
    Views
    1,826

    Re: array element declaring problem

    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?
  5. Replies
    11
    Views
    1,826

    array element declaring problem

    <code>public class mHandler
    {


    public static int num=4;


    ...............
    ...........
    .........
Results 1 to 5 of 5