#assignment help, again
1 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @ocean ore! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
What do you mean? Be specific
"My program works fine without the class" => what do you mean?
"teacher likes to be annoying" => what do you mean?
"Iv tried [...] making book class its own parameter" => what do you mean?
And in theory you should have explained everything else, but I guess the main class explains it better
Is the main class something that you're forced to use as it is?
yes
book as well
In main the book listing news have two parameters but i cant figure out how you make an already existing book a parameter for book listing
Do you know how to make an already existing String a parameter for Book?
i tried that and it said you cant make the book class into a string
I didn't ask whether you tried something
I asked whether you know how to make an already existing String a parameter for Book
I didn't ask what you can change
I asked whether you know how to make an already existing String a parameter for Book
So what you're saying is that no you don't know
So, here is how you make an already existing String a parameter for Book:
String title = "Frankestein";
String author = "Maty Shelley";
Book book1 = new Book(title, author);
I already said the book class is not being changed
its book listing that is causing issues
Yes, and that means you don't understand how it works
Because nothing here implies changing Book
all of that is already done
i know how it works
im trying to get that into book listing to use it
It works the same with BookListing, so no you don't know how it works
As a Book takes two parameters of type String and String
A BookListing takes two parameters of type Book and double
That is all
it wont let me use type book
What do you mean?
it doesnt work, it just gives errors
What - do - you - mean?
that making book a parameter doesnt work
What do you mean?
making book a parameter in book listing creates an error
Stop using fancy words
"making book a parameter" => What's that?
In other words, don't say anything but what you mean
i give up this is pointless. ill just wait until tomorrow for my teacher