@# Quotes DB     useful, funny, interesting





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



Comments:

<0> sql
<1> ?
<0> sorry was joining sql, and mis typed
<2> which one will be calculated first - or %?
<1> javaq_: try it experimentally
<2> LLyric: tnx i got it
<1> use brackets, even if they're not literally required, to make it obvious to other people reading the code.
<3> hi
<3> I have trouble see the difference between interfaces and abstract cl*** because in interfaces we can set abstract methods too
<4> mmm i love coffee
<5> what is the good online free book?
<6> Is a fantasy sci-fi novel ok? Or did you want a java one? :)
<6> Thinking in Java by Bruce Eckel is good.
<5> thats it
<5> thanks
<7> andre2: http://javafaq.mine.nu/lookup?40



<7> hi talios, cal, everyone
<7> andre2: http://javafaq.mine.nu/lookup?9
<6> 'lo Clackwell
<8> morning
<9> hey all how do i write a quoted string to a file using FileWriter
<8> use \"
<9> k
<6> 'lo jottinger
<9> is there a better way than that
<8> erm
<9> i'm trying to write something with a ton of quote symbols
<8> manually?
<9> yeah
<8> then nope
<9> maybe i should i just write an xml file
<7> "oh, something looks complicated - let's use xml!"
<7> maybe just use a plain text file.
<9> well the whole point is i'm tring to generate a ant build.xml
<10> to the rescue!
<7> zodi: i don't understand the problem. you are going to write 10 kb of string literals in java source code?
<9> i'm trying to dynamically generate this build file per project
<9> how else would i do that
<8> use netbeans!
<9> yeah i'd like too
<9> but my boss has informed me we all have to use eclipse
<9> i have an ant script that doesn everything i need but it uses several variables i want to be able to regernate the exact same script but readin cariables from my app to regenerate it
<9> infact i dont need to regenerate the whole script just the part where i set the properties
<7> <blink>
<7> how are you trying to solve the problem?
<9> i thought that was solving the problem by generating the ant scripts
<7> maybe use a template .xml file, create a copy of that and make the modifications?
<6> zodi - so um, why not just write a .properties file - and load that properties file into ant using ants properties loading tasks?
<9> i only started using ant today i havent seen a .properties file
<6> the kiwi profane?
<8> I use profane for heat
<8> burns clean, burns cheap!
<2> anyone here used IBM Rational Rose?
<7> oh, that still exists?
<8> heh
<2> coz i can't install the bastard
<8> yes
<7> javaq_: excellent, a quality product through and through
<7> re***uring, ain't it?
<2> my system meet the requirements but it says i did not
<2> i tried MS Visual Modeler and it really sux
<2> i can't find the sticky figure, the actor
<7> i had the problem that netbeans 4.x installed, but gave an error when trying to run it. i suspect that my changing of the "desktop" folder setting in the registry caused this. <giggle>
<7> javaq_: it says that you do not meet the requirements?
<7> what was it, nose too small?
<11> my object "vet" that is a vector of 10 positions and 10 integer elements [3,1,2], i'd like to sort to [1,2,3]. how can i use the correct sintax? Arrays.sort(vet[]) ??
<11> ops 3 positions and 3 integer elements
<11> Arrays.sort(vet[]); ??? correct ???
<12> have you tried?
<11> yes
<12> and?
<11> .cl*** expected ")" expected
<12> does it compile?
<11> but i wrote Vector<Integer> vet = new Vector<Integer>(3);
<11> Thunder^: im in netbeans, netbeans said it
<12> ahh well if netbeans says it must be true



<12> does it compile??
<11> no
<12> then its NOT correct
<12> [houston]: APIDOCS = The API documentation for the Java standard libraries are available for download at http://java.sun.com/docs/ and for online reading at http://java.sun.com/j2se/1.5.0/docs/api/index.html
<11> so, im asking what's the correct form to use Arrays.sort to sort in crescent form my elements
<12> [houston]: Do the tutorial and not just read it -> http://TheJavaTutorial.com/
<12> first of all.. there is nothing called "Arrays"
<11> but can't you tell me quickly?
<12> no I can't tell you quickly.. then you will never learn
<12> do you need to do this ***ignment fast so you can go back to playing computer game?
<11> im sorry
<13> Thunder^ : there is something called Arrays , under java.util.Arrays , se http://java.sun.com/j2se/1.5.0/docs/api/java/util/Arrays.html
<11> yes, thats true
<13> however, it doesnt work on Vectors , only on arrays
<11> ahh
<11> teralaser: so, how can i sort in Vectors?
<13> [houston] > Maybe you could convert it to an array looking at this : http://java.sun.com/j2se/1.5.0/docs/api/java/util/Vector.html
<13> :D
<12> [houston]: Have you checked the Vector cl*** in API to see what methods it has?
<13> hi Thunder^, btw
<12> Hey tera
<13> why does it have to be a Vector anways, houston ?
<13> just int[] aa = {3,2,1}; java.util.Arrays.sort(aa); should do it.
<13> hehe
<11> hum
<11> because it's already running without sort
<11> teralaser: im using vet.get function of Vector
<13> hm, can anyone please reset topic, Clackwell , Thunder^ ?
<11> can't i try ArrayList?
<13> thanks!
<11> ok
<12> [houston]: What is it exactly you want to do?
<12> Do you need to implement a sorting algorithm?
<11> Thunder^: create 50000 random elements of an Array and Sort them. And after use System.nanoTime() to measure in nanoseconds the time of binary search and interpolation search.
<12> lol
<11> what after tells what is the faster.
<12> So your teacher told you to try and optimize the binary search tree?
<11> ops
<11> no!
<11> just measure the time :)
<11> and tell what is the faster
<12> to your teacher?
<11> in own program
<12> ok first of all.. noone uses binary search trees in their own programs.. because there is no need for it
<11> no, System.out.println("The Faster is Binary Search in 123123123 nanoseconds");
<11> it's my homework
<12> hehe yeah.. thats why you should ask your teacher for help instead of us.. you see.. we don't get paid to teach you to learn how to program and think by yourself.. I tried to make you think giving you some hints.. teralaser did the same.. nothing helped
<12> so.. now you won't get my help anymore
<11> ok man
<11> im just asking for help
<11> im sorry you all
<14> Thunder^ did you mean noone uses binary search?
<12> DeepC: How many at a job have you heard that uses Binary Search Trees for something useful?
<12> besides the conversation with houston (at the end) was about wether he was having some ***ignment at his school and was too lazy asking his teacher
<14> well, binary search is an easy and fast way to find an element in a sorted list
<12> I agree
<12> but that wasn't my question
<14> as such i have used it frequently
<12> so thats one out of.. 38 in here
<14> so? every programmer should know about such techniques
<12> true.. but they should learn it at school.. so they can get the theory behind it and not just figure out how to sort with some sorting mechanism they figure out how to do themselves like bubble sort
<14> it seems his teacher was trying to do that ;)
<15> java.net.SocketException: Transport endpoint is not connected, have enybody encountered this problem ?
<15> UDP protocol
<12> DeepC: I'm not his teacher
<12> missile: I've never done anything with UDP, sorry
<14> and i'm not implying that. see, all i only wanted to point out that i don't agree with "there is no need for binary search"
<15> I've installed a java proxy (Rabbit2), it works for some time and then dies with the exception in its error log
<15> http proxy
<15> written in java to be correct
<16> hey anyone knows how to program with sml?
<17> hey anyone knows that if nobody else arrives, everyone has heard your off-topic question once already?


Name:

Comments:

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






Return to #java
or
Go to some related logs:

mygangbang
#linux
did the Crane brothers run the length of in a record 101 days in 1983
#php
#linux
#linux
#linux
#chatzone
katamari.iso psp
#php



Home  |  disclaimer  |  contact  |  submit quotes