Everything seems to look right, it compiles, and even runs, but the output I end up getting looks like this:
Book@6e00321, Book@5ced6f0d... etc
Why is it outputting that instead of the sorted...
Type: Posts; User: Shadud
Everything seems to look right, it compiles, and even runs, but the output I end up getting looks like this:
Book@6e00321, Book@5ced6f0d... etc
Why is it outputting that instead of the sorted...
There is another section of the forum, if you click the Forum tab you will see underneath the "What's wrong with my code?" forum "Java Theory & Questions". You merely click there and post your thread...
Hey Heshan, I think this question would be better suited for the Java Theory & Questions forum. This part is for when you're actually stuck on coding and need someone to look over your code.
First, I feel it would be beneficial to define my goal. The goal is to take my titles array, assign it the title values that are defined in my bookList array then sort the titles array. Up to there I...
I removed the String already, as it was part of my confusion, that was the reason for producing a null value instead of a syntax error. I also made adjustments to the variable names to help...
Okay, I found part of my problem, instead of writing this code:
String[] titleArray = new String[] {Book1.gettitle, Book2.gettitle, Book3.gettitle, Book4.gettitle, Book5.gettitle};
...
Hi guys, forgive me if breaking all sorts of laws in Java, I'm only a couple weeks into learning it and I've been struggling the whole way through. Right now what I was trying to do was create an...