Faculty of Engineering and Mathematical Sciences 
Not logged in (login)


This forum is provided to promote discussion amongst students enrolled in Data Structures and Algorithms (CITS2200).
RSS cloud
Jump to:

lab 3 Null exception in submission

1 of 251 articles shown, currently no other people reading this forum.
From: Tristan W.
Date: Mon 30th Mar, 3:49pm
"James Arcus"                               wrote:

> When any exception gets thrown in CSSubmit like this, it should print out a few lines describing the "stack trace", i.e. what the code was doing at the moment the exception was thrown. That should guide you towards where to look in your code for a fix.

Hey did you manage to find a solution for this? I am not sure why the the pointers are not being initialised. 

	* initialise a new queue
	* @param size the size of the queue
	public DequeCyclic (int size) {
	items = new Object[size+1];
	first = 0;
	last = size;

Related articles

lab 3 Null exception in submission (all 5) RSS
├─ original   Thu 26th Mar, 8:01am, ANONYMOUS
├─ reply 1   Thu 26th Mar, 10:13am, Ethan P.
├─ reply 2   Thu 26th Mar, 10:18am, James A.
├─ THIS   Mon 30th Mar, 3:49pm, Tristan W.
└─ reply 4   Wed 1st Apr, 10:01am, ANONYMOUS
This Page

Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020