| |
| |
| |
|
Page: 1 2
Comments:
<0> I've never read that book, but I suspect certification guides tend to ***ume you already know the language, and at the very least, know basic OOP <1> i know some c++ but not on its OOP part <1> is there method overriding in c++? <1> honestly i am new to OOP <0> Yes, C++ has method overriding as well. <0> C++ also allows operator overloading, which java does not <1> overloading is a simpler concept for me <1> hmm <1> but.. what makes overriding different (except that overriding can be done only on methods)? <1> is "Thinking in Java" a good beginner's book? <2> yep <2> its a good book for anyone <1> ok thanks <1> hmm <1> its nice with programming exercises
<0> LePen`: The book is availible for free download, if you weren't aware of it. <1> i just downloaded it <1> hehe <1> i think it is infinitely better than the book i am reading now <1> at least it is discusses OOP on the first chapter <1> thanks guys <3> do u know a collection through wich i,m able to get all files from a directory or to select files after an criterium? <0> crestinu: Look into the javadoc for java.io.File <3> ok ty <3> anather quest plsz <3> i'm in an applet <3> and this isn't allowed <3> i mean <0> To get access to the filesystem in an applet it needs to be signed (and accepted), IIRC. I'm not very familiar with applets. <3> oh i see ty <3> aim able to d this only via urls <3> aint able in applet to get the filelist <3> the point is <3> that this page will run on a web server and i want to get a filelist from avirtual dir from that server <3> not from client <3> this should be possible isn't it? <4> I have a question about Java's use of threads. When you create a cl*** that creates it's own thread then you create that cl*** there are then two total threads right? <4> when I say create that cl*** I mean create an instance of it <4> The reason I ask is because I did exactly that, then did a Thread.currentThread().sleep(1000) but the program I wrote didn't return to the main loop to continue any further statements <5> depends on exactly what you've done <5> each Java program by default has one "thread" actually running your code <5> if you then create n more threads, there are n + 1 threads in total <5> (the underlying Java implementation might be using more - for example, a GC thread) <4> Right <4> So any idea off the top if I have implmented a Sleep() method in the run() method why java would not return to the main loop to continue other functions? <5> I'd need to see te code <5> you can paste it at the site in the topic <4> np. It's kinda big so I can cut it down <4> here is the link <4> http://javafaq.mine.nu/lookup?3&wb=true <4> Thanks in advance <5> ok <5> remind me of the problem? <4> What happens is that when the sleep command occurs <4> the main loop does not continue functioning <4> everything waits for the first thread to finish before the second thread is even created <4> If you happen to run it it will count up to 100 then down from 100 <4> One thread counts up while the other counts down <4> If they were running at the same time I would ***ume it wouldn't go directly up but up and down as they are both accessing it at the same time <5> that's what I'd expect to see here <5> you've got one thread sleeping <4> right <5> whilst the other executes - the threads will easily finish in 900ms <4> right but on execution that's not the case, it just counts up then counts down <5> well, I've just run it here <5> and it works fine. counts down to -100, then back up to 0 <4> Right but that shouldn't happen <5> sure it should <4> both threads should run at the same time right? <5> no, because you've got one thread sleeping for 900 milliseconds - the thread that adds <5> so in this time, the thread that subtracts is running away, taking one away <5> the thread that subtracts will easily finish in 900 ms <5> so by the time the thread that adds wakes up, it's already done <4> ohh wow
<4> interesting <4> lol at myself <5> everything OK now? :) <4> So in actuality it did do it... hmm <4> I think so let me try it out :-) <5> it's running exactly as I'd expect <5> cool. going to get some lunch, bbi a little while <4> ok thanks a million Asriel <4> wow that is really interesting now that I changed the millisecond time <4> awesome... Again thanks a lot Asriel <4> Somtimes the problem is not in the code or the compiler(interpreter) <6> hi <6> anyone good with xslt 2.0 / xpath 2.0 <6> in particular, using a group set attribute and distinct-values <6> blah <4> blah <4> Sorry I thought it was like "ping pong" or something <7> Spring, Struts, JSF, Tapestry... what should I go for? I'm looking for something simple and with litttle configuration. Ideally something where I can plug components together a la ASP.NET - as that's my previous web dev experience <8> considering that its all Java it might be an idea to start by getting yourself more familiar with it. After that its merely a matter of choice, probably best guided by means, taste and such. <7> I am familiar with Java <7> and I'm familiar with JSP too, unfortunately <8> Unfortunatly? <8> Well, with that attitude I'm almost wondering why you simply don't stick to asp.net if it gets the job done. <7> can't :D <8> well, tough luck then. <7> JSP: very unorganised, you need to maintain state manually <8> sticazzi: uh huh. Well, it doesn't fit my description. <7> Lion-O, you are not being very helpful <8> Makes me wonder if he actually knows what jsp is or rather; what the extend of it is or can be. While I agree regarding tags you can hardly blame jsp as a whole for it. I like writing Java code directly in my html :P And wouldn't consider Java unorganised :P <9> hi everybody <9> is it going fine ? <6> hi <6> need xslt xpath 2 help <6> with attribute sets <6> and distinct values <6> group sets maybe <6> i have 2 params <6> i want to find distinct groups of them <6> then i want to iterate through them and display in formated html <6> within an xslt file. <10> hello <9> hi KingKong <9> brutish pseudo lol <11> St_Jimmy: turn that off please. <6> yes do it do it <11> hi funk <6> clackwell, hiya <6> are u any good on xslt xpath? <9> funkular ask your questions <11> funkular: enver done xsl/xslt/xpath in my entire life. <11> never, rather <6> using xpath 1, how to select distinct pairs of 2 attributes. <6> then iterate through the sequence to produce html <6> and i cant use xslt 2 since upgrading the library breaks other files . <6> calchas, how's the weather for u? swealtering here <12> aight sorry <9> funkukar <9> 1 & 2 can be done with xslt <9> cause xslt uses xpath <13> cool today, 38C <13> overcast and may get stormy <13> was 44C yesterday <6> hihi <9> re <9> funkular <9> did you read my messages ?
Return to
#java or Go to some related
logs:
#MissKitten #AllNiteCafe 24online crack #linux intelgirl london VNC connection timeout (10060)
#linux #linux boost asio c++ -sound -driver site:quotesdb.info madbovine
|
|