Uni Work Help (Java)

I'll attach a screenshot of my coursework for Uni. Basically due to personal issues I missed 90% of my classes and I'm looking at this question and I've no idea where to start. Now just to make clear I don't want people to do the work for me, there's no point in that I want to learn. I'm just wondering if anyone can look at this screenshot and point me in the right direction. Thanks.

start by writing a class
usually

public class className {
// insert method here
// string
// reference
// insert tostring here
//insert constructor for homepage
}

the directions are fairly straight forward.

The internet is very useful for looking up guides and explanations. Use the resources I have linked below as a reference. It is not necessary to watch all the videos from start to finish. If you already understand a portion, skip it.

If the code above is confusing, take a look at these notes on constructors and initializing classes

If you are confused about objects, here's a reading about objects
If you don't like reading, here's an extensive video about objects

if you are confused about the example structure, these notes explain linked lists ignore the 9.2.1 on recursive linking as it appears your class has not yet covered it yet. If you don't like reading, here's a video explaining how to make linked lists.

3 Likes

Thanks mate. I'm good with objects and the exception handling stuff. It was the 'reference up', 'reference across' and 'reference down' that's completely throwing me off. Can't find anything in my notes. I'll give those videos a look thanks.

maybe wrong but the references just look like variables. you could create an array list of objects containing the references (links) to the page above the page below and next page.
this isn't really clear on how they want it implemented.
Rather than mess around with different implementations ask for the mark scheme that will show you what they are actually looking for.

the reference up and reference down are referring to linked lists
this is what your method should look like


it looks like they want it to be linked the different pages are linked together by the reference variables

Thanks for the help guys. Think I know where I'm going with this now :slight_smile: I'll give it a shot tomorrow after some studying and hopefully it works. The lecturer doesn't provide a marking scheme. He's provided a video on the end result in the console. So I'll just code and hopefully get the same output :).

Spoke to the lecturer. The response regarding the structure was that it isn't a 'linked list nor a binary search tree – it is a unique structure'. Not quite sure what this means or if I can even research it for more help or if I just need to read his notes and hope they'll be enough lol.