| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> you mean #java owner? <1> yes <0> Clackwell will be the new manager if he gets enough support <1> I said I'll be one of the supporters if you are not enough, anyway, he should apply this year, instead of waiting for some miracle <1> the more waiting, the worse <0> yeah <0> just start the application <1> it's a matter of time until a lamer will try to do lame things, so... I really dunno what's he's waiting for <2> as far as i know, he wanted to start the registration today, but got an error regarding Rob_uknow using an invalid email address <1> then he should replace Rob_uknow as a supporter <1> from my point of view this channel should have had X again by now <3> Dude, what's the rush? <1> the example is far from any of my intentions, but a lamer could do it <3> Got to go collect my food, bbl.
<4> SAnDAnGE: If a lamer does lame things there is always our friendly neighborhood IRC oper willing to help. <4> patience is a virtue. Better not rush into things. <1> my example had nothing to do with opers <4> mine does :P <1> that was my example <4> then you're not opped. <1> so ? <4> you figure it out :P <1> you don't know the supporters, you know only the applicant <1> so... think about it <5> Lion-O: What does beeing op have to do with anytihng? ;) <4> wlfshmn: more than some people are willing to realize. I too have lots of critcism towards undernut and cservice but I'd give 'm more slack than that. <1> Lion-O so.. is it possible what I said ? :) <4> SAnDAnGE: Very unlikely. <4> And at this moment I'd even deem it impossible. <1> think more about it, X counts only joins ;) <4> SAnDAnGE: wrong. Anyway, this discussion is a moot and uninteresting one. <1> that was my point to that Clackwell should hurry a bit <6> hey <0> hey <6> help please.. <6> The user enters a String into a JTextField and I want to iterate through an ArrayList of objects until that String matches with a field of the object.. <0> I can kick you, does that help? <2> web james_mil <0> ow, there is the question <2> wb <6> thanks MbGone :) <6> Is this the correct way of doing this: <6> Iterator it = arrayList.iterator(); <6> while (it.hasNext()) { Product pro = (Product)it.next(); if(pro.getName().equals(textField[i].getText().trim())) {.....} <6> for some reason the IF statements returns true even if they don't match <6> the i is declared in a for loop before the while loop, as there is an array of textfields so it checks with each text fields <6> what am I doing wrong? <6> thanks in advance.. <0> you should work event based <0> the user types text and presses 'ENTER' <0> then you receive an actionPerformed event <0> there you check the entered string against the items in the list <0> if a match is found do something <6> Yea ..thats what ive done...when the actionPerformed is called, a call to a method is made, and then the above code is performed <6> Rob_uknow: But thats what I'm doing in my code above arn't I? <0> if(mylist.indexOf(textfield.getText()) != -1) { .. } <0> thats all <0> if getText is in the mylist it will return the index of that item <0> if its not in the list it will return -1 <6> hmmm <6> But the arraylist stores OBJECTS <0> String is also an object <0> what types are in the list? <0> you could override the equals mathod of Product <6> they are objects of Product <0> anyways <6> hmmmmm
<6> So why doesn't my code above work? or does it all seem ok? <0> looks fine <6> hmmmm <0> I take it you break out of the while loop if you find a match? <0> using break; <0> or return the method <2> james_mil - can you paste the entire code in pastebin or in javafaq.mine.nu ? <2> grr i mean, the entire for loops <6> nope Im not using break ? <6> do i need to use it? <0> well, its a shame to iterate over the other items if you already have a match <6> how do i structure that? <6> MbGone hold on <6> MbGone: http://www.pastebin.ca/330344 <6> pro.getName() returns a String <0> why don't you just print pro.getName and textfield.getText to system.out <0> and see for yourself why they don't match <4> hmm. I could be mistaken but a for loop can also itterate immediatly through an ArrayList iirc. <6> no, the problem is that it always says it DOES match, even when it doesnt <6> but ill print it out now <4> IMO its a little odd to keep defining it over and over again in that loop. <6> hmmmm <6> ok thanks for that..i think ive got it working..ill be back later..need shower.. laters <7> dishes to wash :'( <7> bbiab <0> I have a dishwasher for that <2> wife ? :P <0> wife would be cheaper <0> or.. <0> would it <2> no it wouldnt <0> dishwasher is more efficient then doing it by hand <0> since you save up the dishes <2> but you need to buy the dishwasher <2> wow, we are really bored :) <0> its only a one time investment <0> yeah <0> java rulez <2> hehe <0> dishwasher.washdishes(); <2> you mean.. : <2> if(logger.isDebugEnabed()) <2> logger.debug("Washing dishes.."); <2> dishwasher.wash(); <0> no way <2> there <0> I only log errors <2> really? <0> ofcourse <2> really helps in production systems <0> we already have 1 gigabyte logfiles every month <2> thats why its debug log... the production system is in info level <2> and if we want to open logs we change it to debug <0> debug level is not configured on production <2> what do you mean configured? its simply a log4j.xml file, which can be changed online <0> yeah <0> so on production log4j.properties doesn't list debug <2> we have to log4j files , one for debug and one for productin, when we want to open logs we simple copy the debug one over the log4j.xml , and when we want to close them we copy the production one <2> s/to/two <0> we just configure them <8> ah he's back again <8> hm rubbish ban messages in this client, must resort back to default.
Return to
#java or Go to some related
logs:
domapi save listgrid C++ Iwebbrowser2 sink #AllNiteCafe kadotary #c++ miqmaq spelling #mysql #linux #linux #windows
|
|