The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement
where you can ask and answer Java programming questions.">
artima.com - a resource for Java and Jini developers
Artima | Search | Java | Design | JVM | Jini | Books | Seminars | Subscribe 


Java Answers Forum
April 2001

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

RE: Array question for beginner. Entering a table into an array.

Posted by udayk on May 23, 2001 at 1:26 AM

Hi Doates,

Here you need to create a class called Product having the
atributes Code,Description & Price. And then use the array
of objects of that class.

regards
-uday
> Hi all. I have an assignment where I have to enter the details of products into an array for searching and validating on. How would I enter the following table into an array? I've spent hours trying to work out how its done but am at a loss. Thanks in advance.

> ProductCode Product Description Price
> 1234 Soap 2.33
> 2545 Washing Powder 3.58






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us