Search:

Type: Posts; User: Java Man 9000

Search: Search took 0.40 seconds.

  1. [SOLVED] Re: Arrays being initialized from another class

    My problem is solved I only used one array and finally import the other class correctly. I will share my findings soon.
  2. [SOLVED] Re: Arrays being initialized from another class

    Sorry Norm employeeID is on another part of my outlined program my latter post has been changed.
  3. [SOLVED] Re: Arrays being initialized from another class

    The error is in this code


    while(currentStore <= 7)
    {
    JOptionPane.showMessageDialog(null,
    storeID[currentStore],
    "Store " +...
  4. [SOLVED] Re: Arrays being initialized from another class

    There isn't confusion the code won't let me access the data from the array on the storeSource.class on the store.class.
  5. [SOLVED] Re: Arrays being initialized from another class

    The only error that I have is: Error(25,17): variable storeID might not have been initialized

    How can this be done then? The array isn't anything but "int" in the class files.
  6. [SOLVED] Re: Arrays being initialized from another class

    The store.class file is supposed to refer to the storeSource.class file in order to later store data under other arrays. The storeID array below is to be referred to when creating arrays (to keep...
  7. [SOLVED] Re: Arrays being initialized from another class

    No I am trying to get my store.class to retrieve the data from the storeSource.class and when I take out "storeSource storeID;" the variable can't be found.
  8. [SOLVED] Re: Arrays being initialized from another class

    Sorry the payroll was supposed to be storeSource. Is this the source of my problem or is it still because my variable isn't identified locally in my "store" class?

    Here's where my program is based...
  9. [SOLVED] Arrays being initialized from another class

    Hey, my program is supposed to display stores, their unique identification number, and their income. I realize that my code doesn't accurately demonstrate the program intended.

    My test code says...
Results 1 to 9 of 9