@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4



Comments:

<0> wajajja
<0> lol
<1> ambulance chaser? heh
<2> ahh ... 12h of work ... luverly
<3> nice
<2> just got home, and felt i had to turn on my pc ... and here i am
<3> znabela
<4> more java for you, Mr. znabela
<4> 12h ? you got paid for that ?
<2> i get the day off tomorrow
<2> and i just got a 1.5k raise + benefits
<4> Ah... nice deal.
<4> :(
<5> if i want to create a new object of a cl*** in a .java file in the same directory, what would the import sytnax look like?
<5> syntax



<5> no one?
<6> Lumafsck: have you read the sun java tutorial with regard to creating your own packages?
<5> which one is that?
<6> Packages - Creating and Using Packages
<5> looking at it now thx
<5> it says i can just name it
<5> but it complains if i put "package bank;" at the beginning of each .java file
<6> Lumafsck: http://javafaq.mine.nu/lookup?254
<5> i am using eclipse
<0> hola
<7> hi
<7> anyone can help here please?
<8> aah, good. That will at least help us somewhat.
<8> Clackwell: *nudge* ? Around and would you mind a /msg ?
<8> Clackwell: *nudge* ? ;)
<8> errr, uno momento
<8> aaah, a pircbot. I was just going to ask if it would be an idea to put a service bot in here (which is being shared by some linux/solaris/$other -related channels).
<6> Lion-O: i just want to put up something drop dead simple that involves next to know knowledge about bots and can be modified with almost no knowledge about any specific bot api.
<6> i am afraid of overengineered libs and tools to get in the way of the real problems that need be solved.
<8> Clackwell: would /msg provide a quick alternative? And well, knowing my friend I'm pretty sure we'll have the channel re-registered quickly enough.
<6> Lion-O: i am hesitant about the reregistering. we should do that in any case, but i do not want to step over calchas on this. if it has to be though, so be it. just trying not to step on anyone's toes.
<8> Clackwell: indeed, he has been around every now and then afaik.
<6> and we'd have to make up our minds who the new owner should be. i would like to have it, but again, not trying to step on anyone's toes.
<8> Clackwell: For the record: you'd have my vote.
<6> Lion-O: <nod> thank you.
<8> right, nothing too fancy. Let me add some users.
<8> Clackwell: static IP for JavaBot ?
<8> yeah, thats usefull :P
<8> ah
<8> HellHound: sorry, spoke too soon :) good mutt
<9> hi bot
<6> hm
<10> o.O
<9> hi doc`
<10> hi :)
<11> Hi, i got a question, maybe someone can help me ?
<11> i got a map with an object for the key and a collection for the value part
<11> before i insert something in my hashMap i wanna see if one of my atributes is already in my map
<11> how can i do this ?
<12> method "contains"
<12> check the api for map methods
<12> but i think contains can help u
<11> yes but i can check if the object are the sames but they can be identical except for 1 attribute...
<12> again
<12> i didn't understand the last sentence
<11> i have an object writter
<11> i put it in my HashMap
<11> the writter has a name, a code and a contry ( these are the fields )
<12> u put the writter as the key or the value?
<11> 2 writter can have the same name and same country
<11> key
<12> go on
<11> but they cant have the same code
<11> i wanna check b4 i insert it if the map already contains a writter with the code from the writter iam about to insert
<12> that's how u implement ur writter equality
<12> to define an object identity u should implement the methods "equals" and "hashcode"
<12> search info. about those methods
<12> they define the object identity
<12> algo u can implement the comparable interface
<11> ok but do i have to implements hashCode absolutly ? like in c#
<11> for example



<12> to equal writter should return the same hashcode
<12> and as u said, the identify attr of ur object are the "code"
<11> yeah
<11> but i think i got the problem
<11> i got to have the same signatures
<11> so the equals must take an object not a writter
<12> i suggest u to search info about equals and hashcode
<11> ok thank you
<12> thinking in java is a good reference
<12> its a free e-book
<11> this is strange
<11> ive overirde hashCode and put code for the value to return and equals is like this
<11> public boolean equals(Object o )
<11> {
<11> return (this.code == ((Auteur)o).code) ;
<11> }
<12> whats strange?
<11> its like it doesnt work
<12> what doesn't work?
<11> containsKey() take my equals function there ?
<12> u should check the api
<12> but i think it'll check the equals or hashcode
<11> it seem to work but it doesnt write the error message is the object is already in the map
<12> write the error message? ? ??
<12> first
<12> in equals, before comparing the object
<12> u should check if its an instance of "Auteur"
<12> in case it's not, u should return equals false
<12> and contains return true or false after comparing
<11> okk so my cast is not a good idea ?
<12> its a good idea after u check that the object its of type Auteur
<12> equals compares to objects whatever they are
<12> for example Integer vs Auteur, should return equals false
<12> search about those methods,
<12> there are plenty implementations examples out there
<11> iam not quite sure i understand
<12> thats why i suggest u to search info
<11> if i cast the object... it should be an auteur already
<12> "thinking in java"
<12> noup
<12> look for thinking in java, u'll find the answers ure looking for
<12> and also look info about casting
<12> upcasting, downcasting, etc
<11> ok
<13> bravo back
<0> :o
<10> zup feyo
<0> doc` !! :)
<0> wazaa!!
<0> que bueno que te encuentro. :D
<0> ya me iba a dormir, pero necesito algunos favores, claro si tienes tiempo y no tienes weba. :)
<0> si no pos.. seguire esperando.. xD
<0> interpretare el silencio. :D wajaja, pasen buenas noches.. / night all! :)
<10> juas que paso
<10> _
<0> un programa. :S no entiendo algo. :s weno xD se podria decir que no entiendo muchas cosas. :D
<10> como cuales, a ver si te puedo ayudar
<0> es ke en si.. :S si lo entiendo. :S
<0> pero no se como agregarle algunas cosas. :S wajaja xD es algo.. complicado mi caso :S
<10> o.O
<0> acepta.. el dcc msg xD
<10> ok
<0> ups. pinche psybnc :S
<10> jajaj
<14> doc`
<15> morning
<10> anybody knows about printing in java?
<0> pos an de estar bien jetones
<0> :|
<10> jajaja yo creo que si
<0> weno... maana podras seguir ayudandome.. ?
<10> si claro
<0> osea hoy pero mas al rato wajaja
<0> xD


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

#linuxhelp
#chatzone
#linux
#javascript
#linux
geekbox howto chmod
#MissKitten
#php
#networking
sms to card smartphone



Home  |  disclaimer  |  contact  |  submit quotes