| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> being sick ****s. <1> I tried a hot whiskey drink... <1> Maybe soup would have been better <2> hi mike <2> dave-e: hot shower or bath? helps me for some stuff. <1> had one... helped while I was in it, heh <2> ha, ok. :) <1> last resort, painkillers and bed <1> cyas <0> decongestant would have made him feel one hell of a lot better methinks <3> I have a minor problem with a java code, can someone help me? It's no more than about 20 lines of code, and it's very basic <4> lo-dott ask <2> i just told a guy that he needs to pay usd 20k for a 8 x 8 pixels image of the sun java cup to put on his web page. and 10k for the 4 x 4 pixels image. <2> and that the 2 x 2 pixels image is for free. he asked where to get that...
<5> lo-dott what is the problem <5> lol <3> ok, here goes.. <5> in english not code I hope <3> I have a code that generates a random number. If the number is above 2000, a msg will print <5> k ... <3> the messagedialog is inside a if sentence <3> and.. <3> hm <5> if clause, but ok <3> it compiles, but it will not show when I run the program <3> and; <5> does the if block ever get reached, test this with a debug 'system.out.println( ... ' ? <2> http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=IMG_1856 <3> yes, it have to because the program runs in a loop; when the random number that's generated reach above 2000 <3> the program should print the number and exit <3> but it just exits <5> have you explicitly tested it ? <3> well, <3> I am a complete newbie to java <3> I tried to use a messagedialog outside the if block <5> ok did you put a System.out.println ... in that block, yes or no ? <3> and it worked <3> no, I used a JOption.showMessageDialog <5> if no, do so and it should show the block doesn't get executed <3> JOptionPane ;) <5> use something simple <3> alright, one moment I'll try.. <5> but you're obviously having fun so have a good time and come back if you give up and want to start listening <5> good luck <3> well. It said the tool completed sucsessfully, but the text didn't show :) <3> same as before then <3> but thanks anyway! <6> what are you using in your if statement? <3> I will get the answere tomorrow, but I just can't wait <3> I would rather go to bed when the problem is out of my head ;) <3> later on :) <5> so check (simply) that the code is executing, that way you will be able to see what the problem really is, rather than guessing <5> does the if block get execusted or not <6> probably not by the sounds of it. <3> It's hard to say, I'm using textpad to compile it <5> also add one just before the if to check that it is even being reached <6> object inspector? <3> well, my guess is that is has to be reached because the program exits <6> try using something like bluej / netbeans, though i don't know if netbeans has an object inspector, maybe somebody could vouch for me? <5> KevSta, he just needs to add some debug println, he's already done the 'make it even more complex' step <3> debug println? <5> KevSta that's really bad advice in my oppinion <6> ok, i'm not saying whether it's the best :S my bad i'll let you deal with it :) <3> hm, <5> lo-dott add System.out.println( "some message" ); to see where your code is and it's state <5> really simple, easy and reliable <5> once you determin that the if block isn't being executed you can use it to examine the if value(s) <5> etc <6> yes, i see what your saying now buddy, I aint pretending to be an expert :p keep it simple. <3> ok, gotta go! Thanx :) <7> alguem tem apostila da @tecnologica.com.br <8> lo how can i convert an integer to a double? double(int) doenst work?! <9> (double)1 <9> i.e., by doing java instead of pascal
<8> k <10> heya all :) <8> and double to string?! <8> this time (string)1.0 does not work ;) <9> hahaha <9> man, you need to do the tutorial, bad <8> parseDouble?! <9> tutorial? <8> toString? <8> where is the tutorial? <9> java.sun.com? <2> at google, like all the other answers to your problems <8> k <8> yeah well http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Ade-DE%3Aofficial_s&hl=de&q=double+to+string+java&meta=&btnG=Google-Suche gives u crap <2> claydy: http://www.google.com/search?complete=1&hl=en&lr=&c2coff=1&q=%22double+to+string%22+java&btnG=Search <2> claydy: and your query produced proper results, too. <8> String.valueOf(double d)?! <8> that doesnt work either <5> what are you trying to do <2> why do you keep guessing? and why do you say "does not work" when that is a completely meaningless thing to say? <8> Double.toString()?! <9> especially when it does :) <5> What are you attempting <8> ok well sorry... i ll start all over <2> [00:52] <8> and double to string?! <2> [00:52] <8> this time (string)1.0 does not work ;) <8> i am trying to convert a double to a string <2> calchas: of course he refuses to read the tutorial, as was suggested to him by joe. <5> what was wrong with String.valueOf(double d)?! <9> calchas: shhhh <9> reading the docs is hard! <2> [01:01] <2> ~be api doc barbie [01:01] <javabot> I guess the factoid 'be api barbie' might be appropriate: [01:01] <javabot> Javadoc is *hard*! <5> most idiots are incapable of reading as an intellectual exercis, despite having some of the mechanics <8> well when i do String.valueOf(double d) i get symbol : method valueOf(double) <8> location: cl*** java.lang.String <8> sWid_F_Res=String.valueOf(dWid_F_Alc); <8> as error message <2> claydy: APIDOCS The API documentation for the Java standard libraries ( download at http://java.sun.com/docs/ ) lists ALL cl***es (see link "All Cl***es") and ALL methods (see link "Index"): http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html <5> claydy have you a test case showing that error <5> I guess silence = 'I don't care and don't really want help' ? <8> test case means what exactly? <5> a piece of supposedly whole code that shows the error <5> used to share and to experiment with <8> yeah sure... <5> should have nothing that doesn't support the code you are testing in it <8> sWid_F_Res=String.valueOf(dWid_F_Alc); <5> have you uploaded it to the whiteboard <8> no i can upload it if u want <5> A: do not paste code in here <5> B: that isn't whole code <5> if you want help I'd like to see it <6> I'm off to bed, good night all. <5> see ya <6> cya <8> The maximum upload length has been exceeded by the client (max. 4K) <8> so what do i do?! <9> write smaller code :) <8> shorten it? <8> mhh <5> write a simple short test case like you said you had done <8> http://home.planet.nl/~mende111/Alcool1000.java <8> thats it <8> and in line 41 i get the error <5> have you written and J2SE yet ? <2> claydy: j2me != j2se <2> good night cal, joe, everyone <5> see ya <8> yeah thats true... but its almost the same right? <5> have you written and J2SE yet ? <5> no it's quite different in many respects <8> k <5> please answer clarifying questions your lack of engagement makes it really anoying to help you <8> i dont understand ur question sorry <5> have you written and J2SE yet ?
Return to
#java or Go to some related
logs:
#norge undernet quit jblitzen #teens gp2x zydas #linux Comon Sava #php StnyFtpd perl seexxxyyyy +ecoprick
|
|