| |
| |
| |
|
Page: 1 2 3 4 5 6
Comments:
<0> If you know enough to find bug reports, and know what a Null Pointer Exception is, I figured you should know how to deal with it. <0> If you were just "ranting", rather than asking for help, go for it :) <1> i can probably figure it out, i was just trying to confirm i'm not being an idiot <1> because i've already wasted a few hours here and there doing stupid things without knowing any better <0> Nah, it looks like a known issue <1> just seemed odd to be unresolved for 3 years :) <1> i think the fix is going to be pretty involved for me too, i'm using some weird for() loop that i found on a website last night, which uses : in it <1> for(final File cur : f.listFiles()) { <1> http://pastebin.com/648812 <1> there, you can see my code <0> Dang, adi.eu and cordonbl.eu are already taken <0> That loop is the new shortcut format <1> i wouldn't worry too much, 99% of people wouldn't even be able to type those properly <0> It just iterates across the array <0> Just create a temporary variable for the result, like this
<1> yeah, i gathered, but i don't know how to stick a null check in the iteration so it doesn't blow up and break the loop <0> You need to put it before the loop <0> http://pastebin.com/648815 <1> ohh, i see what you're saying <1> because the only time it's gonna happen is when isDirectory returns true <1> which means a null check can happen outside the for <0> sure <0> dang, even mili.eu is gone <1> thanks, it makes a lot more sense now <1> when did they start offering .eu domains? can you pick 'em up as an eu citizen living outside of the eu? <0> Just recently, the last day or two. Sure, anyone can get 'em I presume. <0> I was looking at godaddy <1> enjoy, thank you for your help <0> np, have fun. sorry if you felt I was being mean. <2> Oh...hadn't noticed that <2> I stand corrected. <2> You guessed it. <2> tonight is flood-o'-homework. I'm thinking it's spring break ending <2> well, you'd best check it for null before using it <2> weekzz: One channel at a time <2> You are. <2> Nobody cares enough about it to fix it <2> Note: "votes:0" <2> How about mondi.eu? :-) <3> public Color winnerColor() { if (something) return Color.RED; } why is this the wrong return type? <4> How does one handle the differences in the file separators between linux and windows? Especially the C:\.... part <4> Greetings.How does one get Mozilla to view a jsp page? <5> type a URL in the location bar? <4> talios: Tough. I keep getting the file in pure text form on screen. <5> do you have an application server running/serving up the file? i.e. tomcat, orion, resin etc.? <4> talios: I have extremely stupid. Thank you. <6> moin talios, gilead, everyone <7> wb blacky! <6> re gil <8> MouseMotionExample.java:10: <identifier> expected <8> xx=100; <8> what is wrong? <8> http://fatcat.ftj.agh.edu.pl/~kfsz/MouseMotionExample.java <8> could you take a look? <7> well, there's no variable xx there <8> not that cl***? <7> ? <8> so int xx; would be enough? <8> I corrected it, could you look again http://fatcat.ftj.agh.edu.pl/~kfsz/MouseMotionExample.java? <7> omg, "if(b=true)..." <8> isn't it correct? <7> correct - yes, sensible and good style - no <8> so I cann leave b alone? <7> and probably not what you wanted either <7> (b=true) always evaluates to true, modifying variable as well <8> really <8> sorry <8> I've forgot ;) <7> it's java not pascal or something :) <8> :) <8> what about <8> MouseMotionExample.java:11: <identifier> expected <8> yy=100; <8> ^
<8> how to correct it <8> ? <6> start formatting your code properly. that's a mess. <8> leaving b alone will means the same as b==true? <7> dude, read that friendly tutorial before asking questions so basic that they can't be answered without writing your program for you <8> now it's better formatted <6> you are allowed to use " " in your code. you are not required to add " " after the last non " " character in a line, in your code. <6> MatrixEVT: int i; int y = 1; <- variable declarations. i = 1; <- actual code, not a variable declaration. actual code must be in a static block or a method/constructor body. <6> MatrixEVT: BEGINNERSBIBLES Download these two bibles (free of charge): 1) Sun Java Tutorial (http://java.sun.com/docs/books/tutorial/) 2) Bruce Eckel's "Thinking in Java" (http://www.bruceeckel.com/) <6> moin talios <5> hola <5> 28minutes till morning thankyou :) <7> :) <8> thanks <9> #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls <9> intrati e tare <9> #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls #jaguar_x la o trivia pls <9> pls <9> mult <9> va ast <9> pls <9> mult <9> haidetiu ma intrati <10> uh huh <10> not very smart <11> romanian ... should've known <10> Pretty sad still, that so many of those originate from .ro that almost everyone (including myself) generalizes every now and then and simply blocks the entire region just for some peace & quiet every now and then. <12> ::::) <12> :)) <12> .hr, .gr <12> :)) <12> .it <6> agreed. but some years ago it was much, much worse. <10> The few people I know from .ro are very nice and well, quite clued. Unfortunatly; they're a major minority online. <6> these days they hardly show up where i hang out, or they blend in properly. <10> wolfey: hmm, I'm not a big fan of those although I do agree that I haven't seen much nice coming from .gr or .hr in our channel. <12> :)) <10> still. people on dial up from siol can be very dangerous too ;-) <11> i dont hate people from romania in general, but since my channel has been under attack quite a few times in the past year, from romanian hosts, it has enforced me to take action and put a +k key on the channel ... now we dont get any strangers in there anymore ... bleah <11> i guess someone forgot to translate the ircettiquette to romanian <12> you are welcome to join me on 86.61.107.81 <10> hmm, games. <12> Lion-O: well that's nice way to kill excess time <12> :)) <12> and it's quite colourful <12> :) <10> absolutely <5> night all <12> besides practising sockets, threads and java2d makes sense <12> :)) <12> i learned much from debugging this LOL <13> does anyone see whats wrong with this code?? <13> public void drawCircle(Graphics g){ <13> int antalllinjer=start.size(); <13> for (int i=0;i<antalllinjer;i++){ <13> Point sp=(Point)start.get(i); <13> Point ep=(Point)stopp.get(i); <13> g.drawCircle(sp.x,sp.y,ep.x,ep.y);} <13> i get a red line under g.drawCircle <14> red line? <14> what's drawing the red line? <13> red line; indicating somethings wrong <10> so hoover over the red line and read the error. <10> (if we're talking about an IDE) <13> "The method drawCircle(int, int, int, int) is undefined for the type Graphics" <14> e^lnx: I kinda got that, but, like... you kinda left out important details <14> e^lnx: so what does the API say? <13> well, either i can chane its name, or add cast to g <10> probably that there is no such method as drawCircle.
Return to
#java or Go to some related
logs:
#linux 12WHAT IS THE SMALLEST MAMMAL?
#linuxhelp #linux #php psybnc ubuntu 5.10 mexican keyboard ubuntu Serenea Williams #AllNiteCafe suckmydick.com
|
|