My problem is solved I only used one array and finally import the other class correctly. I will share my findings soon.
Type: Posts; User: Java Man 9000
My problem is solved I only used one array and finally import the other class correctly. I will share my findings soon.
Sorry Norm employeeID is on another part of my outlined program my latter post has been changed.
The error is in this code
while(currentStore <= 7)
{
JOptionPane.showMessageDialog(null,
storeID[currentStore],
"Store " +...
There isn't confusion the code won't let me access the data from the array on the storeSource.class on the store.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.
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...
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.
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...
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...