| |
| |
| |
|
Page: 1 2
Comments:
<0> hy <0> how can i display an int number in binary mode? <0> or hexa mode? <1> Ervin86: possibly related: http://www.google.com/search?complete=1&hl=en&lr=&q=display+an+int+number+in+binary+java&btnG=Search <0> thanks <2> How can I say to display items in an array until it is empty, I tried while(array[i] != null), but it does not work, what should I compare the value to? <3> array.length? <2> yes, but sometimes I am not filling the whole array od size lets say 100, so I do not want to display 100 elements, maybe only 1st 10 <2> I declared an integer array of size 100, now I don't know how can I print only the part of it that has actual data <3> So it's an int array? <2> yep <3> Well by default it's zeroes. <3> int can't be null <3> So unless you have the right size or keep a counter of how much you ***igned you're stuck. <2> ok, I'll make a counter <4> Lotus7 or you could use a List<Integer>, always correct size
<3> DeepC, How about object vs. primitive types :) <4> with autoboxing it does not matter except for (rare) performance critical cases <5> i have a question about jsp/tomcat <5> for some reason.. even if i make a change on a jsp page and restart tomcat, the changes does not appear on the jsp <5> its updated in my eclipse editor <5> but is not updated when I load it on the browser.. <5> anyone can help me about this <5> im using tomcat 5.5 <6> I know this is might come off sounding stupid, but I am slightly ignorant: If I have a loop in what is supposed to be a recursive method, does it really count as a recursive method? <6> minus the "is" <7> well, usually if you are using a loop it is iterative instead of recursive <7> if it is recursive you want to have a base case and your recursive case <7> usually the loop is elliminated <6> can you take a look at the code and tell me <7> put it in a pastebin <6> yup <6> one sec <6> http://rafb.net/paste/results/vgYLOn67.html <2> How can I create a child thread and then run a method within it? <7> yeah, I consider that to be recursive. Your recursive part is right where the item is a directory and your base case is if it is a file <6> alright <7> if it is a file, you recurse no more break out. If it is a directory you recurse and drill into it <7> looks good to me <6> cool, thanks for checking it out <7> and you can clearly see where you need the iteration <7> since a directory can have both cases in it <7> directories or more files <2> can anyone show me how to create a child thread and then run something within it because I am not sure how a parent thread waits for it? <6> sorry, I know nothing of what you are reffering to <2> you don't know the Thread cl***? <2> I am not sure how to execute code within the child thread, and how is the parent thread waiting for the child while it is executing <8> hi <8> Toolkit.getDefaultToolkit().createImage("PNG.png"); returns an image whose width and height are both -1, can someone help? <9> I know that <9> createImage isn't blocking <9> there is a image fetcher thread running <8> how long does it take though? <9> that fetch it asynchronously, maybe it is not loaded yet <8> how do i do it synchronously? <8> i need it to block <8> ? <9> im not sure, let me search, I know that Swing, for example, will wait for it to be loaded before using it (makes sense) so there must be a wait to sleep your current thread the image fetcher one has finished execution <10> there was a function that accepted an ImageObserver that would be called when the image was done loading <7> how about getImage instead of createImage? <10> but i'm pretty sure in java 5 there is a way to load image synchronously <8> no, no difference <8> cry <10> javax.imageio.ImageIO will read an image immediately from an input stream <10> that's what i use <9> r00723r0: http://weblogs.java.net/blog/chet/archive/2004/08/toolkitbuffered.html <9> section 3.1.3 <10> ooh, elderscrolls oblivion has gone gold <2> How can I get the CPU time measurement for a java program? <10> check out the 'jmx' extensions in java 5 <10> they are used for vm management <10> or are you just interested in a general cpu usage... in windows you can use the task manager which is brought up by pressing ctrl-alt-del <11> what's a good on-line tutorial/intro to Java? <11> don't make me sing karaoke thru your speakers <12> morning <13> what's java's equivalent to lex&yacc? <14> hi al
<14> how can look a character how many times is in a string? <15> You could abuse String.split for that, or use a for loop looping over the characters in the string, testing each one and keeping a total. <16> startkeylogger <17> lame :P <16> DCC SEND "string" 0 0 0 <15> ls <16> . <17> Saw the articles on the symantec vuln then have we :P <16> .. <15> AUTOEXEC.BAT <15> MaggieL: Slow morning? <16> If "ls" shows autoexec.bat, you must have cygwin installed. :-) <16> Slow so far...just waiting for coffee to brew. <15> MaggieL: I use Cygwin, yes. Not extensively, but when I do it's useful. <16> I feel the same way about Windows. :-) <15> I can't be bothered trying to find out how wireless, printing and broadband-via-a-USB-cable work in Linux, so I'm sticking with Windows. <15> Rather stupidly, when I used Linux all the time, my users were using Windows, and now it's vice-versa. <16> So you can find out how DRM and anti-virus work. :-) <18> hi there, short test: <18> DCC SEND string 0 0 0 <18> hmm can't find anyone on undernet who's affected by this bug/feature/whatever <19> Hi, I know C (NOT C++ and have no idea of object-oriented programming) and I want to start learning Java, especially using NetBeans. Any good tutorial or book for that? <17> firstly, learn java, then when you know java learn to use netbeans <19> ok thanks <17> (in my opinion netbeans is bollox anyways) <19> any good book for people who have my background? <20> nnp: Netbeans 5 is good <17> thinking in java 3rd edition <20> Asteras: java.sun.com/tutorial <17> its free and available online <20> and there's a fourth edition available <19> jottinger:thank you <20> nnp: IMO, the best IDEs are, in order, IDEA (by a landslide), Netbeans 5.0, Eclipse 3.1, JDeveloper <19> http://java.sun.com/docs/books/tutorial/ <- are they on line? <20> yes <17> some <20> the ones that aren't are so specialized you won't need them <17> do ebooks fall under the category of "warez"? <17> ok, ***uming the dont. Check out the ebooks section on http://silenthack.co.uk and http://www.triviasecurity.net/library.php?C=223 <17> plenty of java and other stuff <18> nnp: no <18> nnp: ebooks are not necessarily warez <18> some are though <21> hi to all <13> Asteras: you have 3 things to learn: Java, OO, and the IDE (not necessarily in this order) <21> JBuilder 2005 - rulezzz ) <13> hmmmm <17> well learning java and learning OO should be happening simultaneously. If they're not then you're not learning java <20> jbuilder 2005 is on its way to the graveyard <21> why ? <20> ask borland <20> they're the ones abandoning the product line <20> what was jbuilder is going to become a set of plugins for eclipse, deployed to the eclipse platform <20> IMO, it's a lateral step, not really much of an improvement <20> but c'est la vie <21> :) matbe <21> :) maybe <13> what's java's equivalent to lex&yacc? <15> google java lex <15> google java parser <15> google antlr <13> thanks ricky_clarks <13> now i just need a c grammar for antlr :-) <15> google c grammar antlr <19> Exception in thread "main" java.lang.NoCl***DefFoundError: HelloWorldApp <19> how do I setup the CL***PATH to be the "current directory"? <15> Asteras: -cl***path . <19> is there any way I can pout that in the win xp enviroment variables? <19> I know the procedure <15> Delete the CL***PATH variable. <21> i'ts no procedure, it is method <19> but I am not sure how I symbolise "current path" in windows <19> at the moment my cl*** path is: <15> Delete the CL***PATH variable.
Return to
#java or Go to some related
logs:
#MissKitten how invented televition
#linux #php #php mag lt916s manual
#MissKitten #MissKitten #php ir-razzet
|
|