Jump to content

LinkedList in NetBeans (Java)

Go to solution Solved by Claryn,
Just now, Philosobyte said:

It's extremely unlikely to be an issue with Netbeans. It must be a problem with your code or setup. Post the relevant code, including imports.

Was missing the 

public [object] next; 

decleration in my object class. 

 

SOLVED. Post was live for 2 minutes before I solved it myself. I spent 30 minutes fiddling around before making the post :/ damn it

Hi.

 

I am working on a small project, and I need to use a LinkedList. I have played around with LinkedLists before in Java, with Eclipse, where I have made a very simple customer-registry/queue for the IT-department on my school.

 

Now I need to use it together with NetBeans, and I decided to reuse a lot of my code.

The problem now is that I get an error when I type front.next; previous.next; etc in Netbeans. I have simply copied my code over from my old compiler Eclipse. 

 

Error: "Cannot find symbol. 

Symbol: variable text

Location: variable previous of type [object]"

 

Is Netbeans not able to understand the front,previous and current.next?

Running Arch with i3-gaps on a Thinkpad X1 Extreme
Data Science Postgrad

 

Link to comment
https://linustechtips.com/topic/548410-linkedlist-in-netbeans-java/
Share on other sites

Link to post
Share on other sites

Just now, Philosobyte said:

It's extremely unlikely to be an issue with Netbeans. It must be a problem with your code or setup. Post the relevant code, including imports.

Was missing the 

public [object] next; 

decleration in my object class. 

 

SOLVED. Post was live for 2 minutes before I solved it myself. I spent 30 minutes fiddling around before making the post :/ damn it

Running Arch with i3-gaps on a Thinkpad X1 Extreme
Data Science Postgrad

 

Link to post
Share on other sites

6 minutes ago, Claryn said:

Was missing the 

public [object] next; 

decleration in my object class. 

 

SOLVED. Post was live for 2 minutes before I solved it myself. I spent 30 minutes fiddling around before making the post :/ damn it

#RubberDuckyDebugging

That time I saved Linus' WiFi pass from appearing on YouTube: 

A sudden Linus re-appears : http://linustechtips.com/main/topic/390793-important-dailymotion-account-still-active/

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×