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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "package does not exist" Watch "package does not exist" New topic

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 " package cVList does not exist cVList.clone.videoList();" and " 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

Joined: Oct 13, 2005
Posts: 46349
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: 3152

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:
subject: package does not exist
It's not a secret anymore!