| |
| |
| |
|
Page: 1 2
Comments:
<0> is this the channel for java programming language? <1> te <1> yes <1> hm <2> Debian unstable just got it's sun-java6 packages apparently <3> http://rafb.net/p/T43jE159.html <3> I'm getting a NullPointerException on the third line.. the first one print as its supposed to <4> and there went the undernut ;) <4> Gere: anyway, thats way too little context you're giving us there. We can only guess at the variables, their values, etc. And then there's the error message; that too could mean just about anything. <3> http://rafb.net/p/fa53ZU69.html The error is java.lang.NullPointer exception at line 8 in the code i pasted <3> Line 7 prints what it is supposed to <5> Gere: lists[] is never initialised <4> same issue. I have to guess. what is lists[] ? <5> as in, it's never created, only declared <4> and you create a file instance, then list the contents of the directory. Without checking if this directory actually exists? <5> line 1 just says "there will be an array called lists". The memory for lists is never allocated
<4> files <4> but could work since File.listFiles() returns a File[]. <4> I also fail to see the need for messing with substrings. <4> all in all; its too chaotic for my taste :P <5> it chops off the first 4 and final three characters of the file <5> not sure why <4> or filename ;) <3> ok i think i got it <5> yeah, I know what I mean :P <4> still, doesn't substring indicate <begin,end> ? So what if you're dealing with a name less than 4 characters? <5> Lion-O: yeah, it's piss poor style, and will fail to hell and back at times <3> the error handling is taken care of, just not posted there <4> Gere: so its not taken care of. <4> All we can base our opinion on is the current paste and I'm with smsie on that one. <5> Gere: ah, okay. THat *can* have side effects, but fair enough. If it makes the code easier to see, great, but you should mention it so we don't worry :) <5> Gere: the string slicing still looks awkward <3> sry i made you worry smsie :p <5> String foo=files[i].toString(); lists[i]=foo.subString(4,foo.length()); <5> although it's esentially the same thing, I think it's easier to read <6> can there be any other reason to see a java out of memory error besides the obvious <6> im getting this exception but apparently still have a lot of free heap space left <7> I'm stuck on a problem with a JSpinner. It's filled with numbers as per the default, I'm trying to get the value of the spinner. The docs say use getValue() but it returns an Object, I need and int. How do I go about this? <8> Try parsing the object in int, or get the int value from the object.methodReturningTheIntYouNeed(); <7> thanks <8> Np <3> what is the most efficient way to create an empty file? <8> What kind of file ? <8> File f; <3> aaa.txt for example <9> morning <10> morning MbGone <9> hi SAnDAnGE <11> hi <12> hi <11> hi max <13> hi all <14> Good Morning All <2> I'm getting antsy, they need to release an IDEA 7 EAP soon.. I've been using stable tooling for much too long <15> hi <9> IDEA 7 , already?? <2> no, not already. I'm just saying I crave an EAP of some sort <9> :) <14> so what is the best ide to use for Java? <16> that's like asking what is the best car on the road <16> it depends on your needs Roy <4> actually. I think that the best IDE to use for Java programming is a working IDE which gets your work done :) <4> in contradiction to the hyped IDE which gets work done without you understanding what the heck it did, or the complex IDE which allows you to spend 90 minutes on a Java cl*** which you could have typed in a mere notepad or vi editor in 15 minutes, and finally the b0rk IDE: the one which simply does not work ;) <17> and there's the bjork IDE - that one smacks you down when you don't expect it. <17> hi lion, everyone <4> ha ha ha, indeed. Hi Clackwell <4> Clackwell: got home safely or are you still at work? I ***ume you guys are hit by the storm as well? <17> Lion-O: i am still at work. it got a little windy, that's all. :) <17> closer to the coast it is probably more interesting. <4> Clackwell: aah good. Over here its quite a mess. Long traffic jams, tree's collapsing, etc, etc. Even in the inlands. <17> Lion-O: nice. :) some neighbors always head towards scandinavia for their vacation trips with their camping car thing. they always have a chainsaw with them, and head to use it several times already. <4> hehehe <4> well, the police is warning everyone to stay indoors so I have the perfect excuse to sit behind my PC and start doing some professional time wasting <17> if the panic makers are right (global warming!!!), we'll have more of that :) <4> Clackwell: well.. I'm a sceptic. I think it is important that we keep ourselves under control with regards to pollution and that things like Kyoto are very usefull. But we shouldn't start m*** hysteria. Just grab a weather almanac and lookup the situation/temperatures in the last 200 years. <17> Lion-O: i think people are possibly over-extrapolating. and nobody ever cares to say "well, we think we have seen all the change that can happen due to non human factors in the past100, 200 years, but actually we don't know if that is so." <4> Clackwell: *nod*, exactly.
<17> i am not pro pollution, pro wasting energy, pro changing the environment, but the over-extrapolating bit gets on my nerves. <4> absolutely <18> x <19> greetings <19> Is it possible to within a javaprogram open a file and compile it? <19> that is have the user select a file A and then have the program running compile it? <4> traxy: considering how javac (the Sun Java compiler) is written in Java I'd say thats very possible. <4> errr <4> tobbes: that was meant for you 8) <4> no, unlike perhaps upcoming populair demand I have to dissapoint you by saying that I didn't manage to answer a question before it has been asked 8) <19> ?? <19> was that meant for me as well lion? <17> tobbes: http://www.google.com/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=compile+in+java+programmatically&spell=1 <17> if worst comes to worst, just runtime.exec() javac(.exe). <17> bye bye <20> hy all .. is there a special program to write java code for mobile ? <20> and to compile it <4> xcelent2005: look into j2me <20> tks <21> teralaser <22> Grob_unknown <4> Hiya Rob. Survived the storm too I see, good, good... <21> no storm here <4> Rob_uknow: well, be glad. Its pretty spooky over here. Lots of wind and rain pouring down <21> no rain here <17> http://img.thedailywtf.com/images/200701/pup2/addedsql.jpg <21> and? <17> Rob_uknow: do you see the sql? <21> you can buy them in supermarkets <17> next time check them for that sql wtf <21> no <21> else I wouldn't say: and? <21> now I see it <21> they actually have spaces inbetween table and field names <17> yeah, what a ****ed up crap. <17> and then, in order to deal with that ****up, they introduce that [] ****up. <17> ****ing morons. :) <23> 'lo Rob_uknow , Clackwell <21> select * from talios <23> 0 Usefull records found. <17> hallo talios. <4> idiotic users? Problems with the boxes? This is your solution (its an old one though): http://www.bugs-r-us.org/stupid/stupid1.htm <17> Lion-O: my first reaction is "a traditional mac mouse where the whole case is the button, so what?" ;) <4> 5hehehe <4> indeed <19> so what is the difference between storage and memory :) <19> ? <9> evening all <21> mb <9> hey rob <19> ah <14> I have a date like 12/01/06 how do I find out what day that is? <21> like monday? <14> right <14> I am looking at the simple format but I am all confused with it. <21> Calendar.get(Calendar.DAY_OF_WEEK) <14> Thanks Rob, Ill got read up on that. Can I use that with a string? <21> you need to create a Calendar first <14> Ok I will read up on that then. <24> hw r u r 2 day <25> some one worked with exadel in eclipse ? i need help <21> not I <4> just ask, don't ask to ask. Some problems don't always require people to use exactly what you use. <21> try the mailing list <25> problems with deploying ... mesage there are no projects to deploy.. <25> i made a project ...but.. <4> Starts to sound more like an eclipse based problem then ;) <25> no my problem not ecplise one ,,:) trying to make compatible struts and got File is not recognized as web descriptor file. <4> now it stops making sense to me. Still, I still think its eclipse related. afaik it also supports struts, but I'm not positive there. <4> Hi Asriel <26> heya <25> there are 15 line web.xml maybe someone will see my error ? may i out put it here ,http://javafaq.mine.nu dont allow me .xml <25> yeah no ..:( <16> eclipse will support struts just fine
Return to
#java or Go to some related
logs:
#linux #chatzone What multiple birth has odds of 600,000 to 1 against it occurring ? #linux #AllNiteCafe castaglia drinks brassstuff okkith #ubuntu Where can you buy a cup of coffee with cruzeiros
|
|