Welcome! Log In Create A New Profile


LinkedList Class - assert probs

Posted by Ryan Botha 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
LinkedList Class - assert probs
June 12, 2008 07:51PM
Hey All,

Anyone else getting these types of compile errors with the LinkedList class given in Chapter 6? How do we get around these errors. I've commented and edited all the assert statements, and that helps, but its a mission.

Any ideas?
Thanks in advance

D:\UNISA 2008\COS214-4\Assignment 3\q7\LinkedList.java:204: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
assert _wellformed();
D:\UNISA 2008\COS214-4\Assignment 3\q7\LinkedList.java:204: ';' expected
assert _wellformed();
Re: LinkedList Class - assert probs
June 17, 2008 09:04PM
Not sure if you got past this problem, but is has to be complied and run using the following commands from the command line:

javac -source 1.4 QueueClass.java

java -ea QueueClass
Re: LinkedList Class - assert probs
June 18, 2008 09:55AM
Great! I'll give that a try!
Sorry, only registered users may post in this forum.

Click here to login