mysiva
asked on
Arrays in Java
Hi I’m bit confused about the array system. Could anyone help me, How to create an array system which, we can enter multiple items. For example an inventory system which hold more than one information per product. How to create it and how to display it? (Just in dos mode to understand the system)
Like a class named as computer
Serial number - string default:??????
Model - string default: Unknown
Laptop - Boolean default: false
Year purchased - integer default: -1
Like a class named as computer
Serial number - string default:??????
Model - string default: Unknown
Laptop - Boolean default: false
Year purchased - integer default: -1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How if you post your current codes / progress?
I may need to go for meeting and will be back in few hours time
David
I may need to go for meeting and will be back in few hours time
David
mysiva, that was almost the full code.
If that was enough (all the answers), first take a basic course in JAVA.
;JOOP!
If that was enough (all the answers), first take a basic course in JAVA.
;JOOP!
LOL Sciuriware......
btw,
you can always do this
Object arrayName[4];
arrayName[1] = new Integer();
arrayName[2] = new String;
.....
That'd be customized arrays... (i think it works...)
but use a class.. its much easier.
btw,
you can always do this
Object arrayName[4];
arrayName[1] = new Integer();
arrayName[2] = new String;
.....
That'd be customized arrays... (i think it works...)
but use a class.. its much easier.
SamsonChung,
I gave that answer to you in another question.
;JOOP!
I gave that answer to you in another question.
;JOOP!
What answer?
for which one?
LOL..
for which one?
LOL..
ASKER