This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes package does not exist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "package does not exist" Watch "package does not exist" New topic
Author

package does not exist

Dustin Schreader
Ranch Hand

Joined: May 25, 2009
Posts: 74
I want to create a clone of linkedListNode videoList (video titles, info, count of video copies) and call it cVList (cVList means customer video list) then resetCopiesInStock the number of video copies to zero for each video and assign an empty cVList to each customer so whenever a customer videoCheckOut a video from the videoList, it will decrement number of copies in videoList and videoCheckOut will increment the number of that exact same video in cVList. I want to know if this is possible and if I'm on the right track. Because I get the errors "mainProgVideoStore.java:196: package cVList does not exist cVList.clone.videoList();" and "mainProgVideoStore.java:197: cannot find symbol symbol : variable cVList location: class mainProgVideoStore cVList.resetCopiesInStock();"

Here is my clone method in the Video class


Here is Main method it's a lot of code to look at but since I'm trying to assign each customer their own cVList
I have all the code in the createCustomerList method near the bottom and near the top
I instantiated it "CustomerList cVList = new CustomerList();"


Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38472
    
  23
You appear to have missed out a pair of () in that line.
Dustin Schreader
Ranch Hand

Joined: May 25, 2009
Posts: 74
Which line did I miss the ()?
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

Its a static method- createCustomerList and you are trying to access instance variables from a static context. (lines 195, 196)


Mohamed Sanaulla | My Blog
Dustin Schreader
Ranch Hand

Joined: May 25, 2009
Posts: 74
Ok thank you!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: package does not exist