« first day (2405 days earlier)      last day (2544 days later) » 
00:00 - 14:0014:00 - 19:00

yep without a prob
 
So, the getAuthor() works then
I've done Q.8
 
yes
 
Q.9 seems quite easy
I just have to create a load of books
Wait xD
 
you actually don't need to check for != null
@CrashBandicoot dude you don't call your classmethod in addAuthor
 
2:02 PM
@motaa So do I just do authorcount ++?
 
ye you put this in:
for (String s : authors) {
this.authorcount++;
}
 
Cool
So, is everything else correct?
 
no
 
What do I need to change?
 
line 55:
`this.getAuthor()[authorcount] = author;`change into `this.authors[authorcount] = author;`
without the `
 
2:05 PM
Gives me the same error
 
you use your getMethod on an object that has been created
then you've got somewhere else the prob
 
Try it out. Take that code I sent and paste it in your IDE.
 
you are using eclipse so go to the "Project"-> "Clean"
I did and it works fine
 
The most recent one?
The most recent one includes getAuthor() instead of authors
 
select the project from the list and ok
 
2:07 PM
Hold on
Sorry, it works
I did authors()[authorcount]
Accidentally left in the ()
 
did you understand the idea when to use the getAuthor?
 
Yes
getAuthor() gets the info, and places the value in 'authors'
So, you have to use 'authors' instead of getAuthor()
 
no
 
then?
 
getAuthor() just returns the authors contained in a String array
that why there is the "get" word
 
2:11 PM
Okay
 
you could spin that further
you could let your getAuthor() return an Author object
 
Makes sense!
 
which contains information about the author him/herself
like name, nationality, birthdate
 
asl
 
So, with Q.9
 
2:13 PM
/fatcat
 
How do you delete the gif?
 
you cant
 
Anyway
 
you have to watch it all the tme :D
 
2:14 PM
This is probably a stupid question, but how do I "create" books?
Would it be simple object creation?
 
yes!
 
Would it just be BookDescription abc = new BookDescription ("Harry Potter", 2.00, ...)
 
you turn back to your Main class
in the main method you create like 5 books
 
In that format? ^
 
it has to meet the signature of your constructor
 
2:19 PM
Yeah
So I have to also include author names
 
you have toi think about class names though
yes
because the classname bookdescription is missleading
one might think that it creates a bookdescription object and not a book object
 
How about Book?
 
good idea! :D
 
Book bk = new Book("Harry Potter", 15.00, "J. K. Rowling");
Gives an error
 
ye since you have to create several books, go with
Book book1 = new Book...
Book book2 = new Book
right click on your class BookDescription -> Refactor -> Rename
and call it Book
 
2:24 PM
I've renamed it
 
the file also has to be renamed
 
Yeah it has been
Used to be called BookDescription.java, now it's Book.java
 
good
 
It still says "Book cannot be resolved to a type"
 
import your Book.class
hover over your the word Book and select the import
I guess your main class and your book class aren't in the same package
in which case you might have to import it
 
2:29 PM
They're not in the same package
But, there are only 2 import options: java.awt.print and library.model
There aren't any of the book.java
 
then pick libary.model
because you Book class is in the package library.model
 
OH yeah
 
:)
 
Book book1 = new Book("Harry Potter", 15.00, "J. K. Rowling");
Brings back an error
 
yep
you mixed up parameters
price and author
plus the authors parameter expects an Array
Book book1 = new Book("Harry Potter", new String[]{"J. K. Rowling"}, 15.00);
 
2:36 PM
Ahhh okay
Works perfectly now
 
if you got 2 authors
Book book2 = new Book("Harry Potter", new String[]{"J. K. Rowling","Invisible Force"}, 15.00);
 
Ahhh
You've taught me alot!
Finally, Q.10
Adding the books to an array
 
this is for you @CrashBandicoot
:P
 
xD
So sorry for bothering you
I know my capabilities are poor
 
that's funny, and the chat room is alive with you
 
2:41 PM
Compliment?
 
yes
 
but the chatroom WANTS TO SLEEP!
goddamn it
 
Oh sorry
 
just kidding ;)
 
2:42 PM
:)
 
@CrashBandicoot no!
@Hans1984 YOU want to sleep :P
 
true that
im awake since 5am :(
 
Getting an error:
System.out.println(book1 + book2 + book3 + book4 + book5);
 
@Hans1984 and what time is it now? 7? 8? :P
did you implement the "toString" @CrashBandicoot ?
if you want to print a book, that's gonna take lot of paper, this may cause the error. Did you check the printer?
 
I've already included the toString
 
2:54 PM
then try system.out.println(book1.toString());
 
gtg! cya later :)
 
@Julo0sS bye!
 
i'm not able to set jre_home?\
anyone here?
hello
 
Why do you want to set JRE_HOME?
 
3:03 PM
for tomcat
in windows
??
help??
 
@CrashBandicoot that is a simple one
 
Done it
 
Why would tomcat ask for JRE_HOME?
 
Just Q.10 now
@motaa
 
luink me your code
 
3:10 PM
Anyways what is the problem that you are facing while setting JRE_HOME?
 
of Main
 
@ItachiUchiha i am going run catalina.bat start commond
@ItachiUchiha it gives error
 
Do you have something like this set up?
 
i tried this
 
3:12 PM
ignore the JAVA_HOME
 
not working
 
What is the error?
 
jre_home not defined correctly
 
It must be pointing to an incorrect location.
 
@ItachiUchiha ok i will check
 
3:17 PM
@CrashBandicoot think how you would do it with the stuff you learned so far in your Book class
I will come back to you in 30 minutes with the solution D:
 
Okay cool
 
3:30 PM
I've tried authors.add(book1)
Doesn't work
 
leaving
bye
 
@Hans Bye
 
3:54 PM
@crash dude
paste.ofcode.org/7fvt8LCSVWFSNuNcmqTczV here is your main functioon
here is a more easy to read code solution
 
4:40 PM
Hello guys, can someone help me with a little something ?
 
4:52 PM
go on
 
Hi, Can you help me with this little project of mine ?
It is totally Java based, and the help that I require is mostly theoritical .
 
@AbhikBiswas go on
 
I am making this MP3 Player + Library
the specifications are -
Required Features:

GUI interface for mp3 file playing.
Play progress bar with skip features.
Playlist creation option.
Automatic music library creation option (Application should scan entire local file system and identifies the location of all .mp3 files and represent them in a tabular format such that user can select any music and play through your application. )
this is for a college project
Now, I am breaking this project into 2 parts - the MP3 Player and the Library
 
you have did research on this?
 
Yes
My question is on how to connect the 2 parts.
When you click a button on the Library , button displaying the song name,

the song should be played with the MP3 Player
What should the Library send to the MP3 Player class ?
I have completed the Library classes, and it can return all the song names, and their paths in a "ArrayList <string>"
 
 
2 hours later…
6:54 PM
@motaa Thanks for the solution
 
00:00 - 14:0014:00 - 19:00

« first day (2405 days earlier)      last day (2544 days later) »