Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 14 results for
digitalcamera
- Page 1
Java Inventory Program
Programming
Software Development
13 Years Ago
by Dzero
… is the methods that use this variable
DigitalCamera
[] myDigitalCamera = new
DigitalCamera
[counter];//Creates
DigitalCamera
array object with getArrayNumber for creating new objects…along with the new element decalered here in the
digitalCamera
class. public
DigitalCamera
(int PartNumber, String Description, int Quantity, double CostPerUnit…
method can't find my array name? i'm stumped
Programming
Software Development
12 Years Ago
by TrickyT
….nextFloat(); // create constructor for this object of Digital Cameras
DigitalCamera
myCamera = new
DigitalCamera
(iName, iNum, IDEPT, iStock, iPrice, iRes); return myCamera; } } // end…
Array Assistance
Programming
Software Development
13 Years Ago
by Chillin2
…String imageResolution; // restocking fee private static double restockingFee; public
DigitalCamera
() { super(0, restockingFee, 0, imageResolution); // the… initialize an OfficeSupply object with the given information public
DigitalCamera
(int theItemNumber, double theCameraPrice, int theNumberInStock, String theCameraName,…
Re: First time GUI - where to start?
Programming
Software Development
12 Years Ago
by TrickyT
…;, 1002, "Electronics", 13, 110.99); Camera p3 = new
DigitalCamera
("CanonD1", 2001, "Electronics", 10, 299.99…, 8.0); Camera p4 = new
DigitalCamera
("CanonD2", 2002, "Electronics", 15, 399.99…
Re: Last day for java program, need help
Programming
Software Development
12 Years Ago
by FDRSOURCE
….io.FileWriter; import java.util.*; public class
DigitalCamera
{ private ArrayList<ActionElectronics> prodlist; public
DigitalCamera
() { prodlist = new ArrayList<ActionElectronics>…
Re: Java Inventory Program
Programming
Software Development
13 Years Ago
by griswolf
Three things to do immediately: 1. Use code-tags as described in the 'readme first' threads 2. Remove about 75% of the code from your post, leaving enough to show the problem 3. Be quite specific about what the problem(s) is/are: Cut and paste the error messages. And a forth thing to help you code: Start with a small bit of code. Get it …
Re: Java Inventory Program
Programming
Software Development
13 Years Ago
by NormR1
[QUOTE]i have many errors that i cannot solve[/QUOTE] See 3. above. We can't help you without the full text of the error messages you are getting.
Re: method can't find my array name? i'm stumped
Programming
Software Development
12 Years Ago
by zeroliken
pass the arrCam array to calculateTotInvent method
Re: method can't find my array name? i'm stumped
Programming
Software Development
12 Years Ago
by TrickyT
like so? [CODE] public static double calculateTotInvent(arrCam[]){ double totValue=0.0; { for(int number =0 ; number < arrCam.length(); number++) { totValue+= arrCam[number].getIValue(); } } return totValue;[/CODE] that still gives me an…
Re: method can't find my array name? i'm stumped
Programming
Software Development
12 Years Ago
by TrickyT
Aha! I figured it out. Got it now. Thanks1
Re: Array Assistance
Programming
Software Development
13 Years Ago
by masijade
Okay? So what's your question?
Re: Array Assistance
Programming
Software Development
13 Years Ago
by Dean_Grobler
Or you can use an ArrayList and convert it to an array..
Re: Array Assistance
Programming
Software Development
13 Years Ago
by jon.kiparsky
What your instructor means is that here: [CODE] class Inventory { static Camera[] inventory; public Inventory() { inventory = new Camera[0]; }[/CODE] you declare the array "inventory" to have zero members. That is, it's an empty set: it's an array of no cameras. Since an array's size cannot be changed, this is not very useful to…
Re: Array Assistance
Programming
Software Development
13 Years Ago
by Chillin2
Thank you for the last response. I have another problem.. on line marked as (HELP LINE) I receive the message identifier expected? I am not sure exactly what I need to insert to fix it so that it will compile. import java.awt.BorderLayout; import java.awt.Component; import java.awt.Container; import java.awt.GridLayout; import…
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC