| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> have you written and J2SE yet ? <0> standard edition <1> yes i know what J2SE is but what does "written and mean"?! <0> have you successful coded applications of a non trivial nature in J2SE <1> yes why?! <0> I do hope you are a school kid and not a university student <0> it doesn't show <1> why do you hope so?! <1> (sry but i am a uni student *shrug*) <0> do you need to import cl***es in J2ME, it looks like you do <1> yes u do <0> where did you import String ? <1> mh... i ll try importing all... <0> and does String in your API have those methods ? <0> you need to check the api docs for the vava version you are using
<1> ok <1> well i ll do that, that helped!! i think thats the problem cos i have pretty much tried everything else <1> thank you for your help, i apreciate it <1> but i m gonna go sleep now, a bit tired i ll try again in the morning <1> cya guys <0> if you really knew some J2SE and had some basic reasoning skills this would be a lot easier for you, I encourage you to pick up both before your studies get even tougher, sorry to be frank and brutal, but I'd sooner you were ultimately successful <0> bye <2> Adding "synchronized" to the declaration of an instance method is equivalent to enclosing the code in synchronized(this){...}, right? And if it's a static method, then it's equivalent to enclosing it in synchronized(this.cl***){...} ? <3> Yep. <3> Well not this.cl***... Cl***name.cl*** <2> Right, no "this" in the second case. <4> hello <0> hi <4> hey calchas <4> what's doin <0> just lots of work really <4> hehe mee too, actually, I'm picking all the work that I've been pushing aside... do you remember my java tree thingy? <0> think so <4> well, suffice it to say that I've trashed my original implementation and started over <4> this time, it's a lot better, and faster. <4> I'm at the point where I've define the vector (of vectors, of vectors) in the form of the tree that I want <4> I plug that into a Jtree and then whammo, it fails to represent it correctly <4> do you know what I mean? <0> ish <4> so I've been looking for a good custom treemodel tutorial online, but haven't found any <0> I've never seen one <4> there are only 2 bascially, the java.sun.com one, and another really outdated one <4> the oreilly swing book is skimpy on it too <0> so is the java black book <4> hmm.. <4> I'm running out of references fast, hehe <4> alternatively, I"m looking for an example that uses the JTree(Vector v) constructor <4> I'm finding that jtree representation has the nodes and leaves screwed up. what should be expandable to show children is displayed as a leaf <4> what is expandable is a string of the entire contents of the sub-vector. when expanded, it displays the chlildren correctly <4> calchas, any thoughts? <5> hi, is there some library that can scan a string and if it finds charactest that have an xml entity that it can replace it with the entity? <4> CMB, I'll be working with xml stuff in the future, but I'm thinking that you're looking for a parser <4> I'm currently writing my own parser of sorts <0> sorry head was/is elsewhere <4> ok <4> you're unavailbe now? <0> CMB sounds like you want regexp <4> I guess he is <4> hehe <5> yes but I'd rather delegate this work to an external library so I was wondering if there was already one? <6> hey im trying to use netbeans for j2me but im having trouble finding com.nokia.mid.ui package. anyone know where i can find it? <7> I got a public static void main (String args[]) {}... I've made a method calculateSum(int[] tabell) {} - do I put this before, in, or after main? <8> arex\: after main <8> or before main <8> it doesn't matter <2> Grr. My team has an interface Foo, and I determined that it would be good to create a cl*** AbstractFoo that implements Foo, containing some basic stuff that I expect we'll need in the next revision -- but I've just realized that my teammate's implementation of a concrete Foo is already extending some other cl***, so it can't also extend AbstractFoo. <9> make it an interface? <9> oh <9> hm <2> I don't suppose the other parent cl*** can be made an interface, either. <7> http://pastebin.com/502001 What's wrong? <2> Missing return statement for the case where the element isn't found. <7> thanks <2> (Or a throw statement) <7> Karlo__, hm, i get "This method must return a result of type int" <2> Also, as a style issue, I think i < array.length is better than i <= array.length-1
<2> What did you try to do? <2> The compiler is right -- you declared it int, so any return value has to be int. <7> ah, got it <7> thanks <7> http://pastebin.com/502038 What's wrong? <7> nm <2> It's now finding the last instance instead of the first one <2> And it traverses the entire array even if it doesn't need to <7> different method <7> true, i could start in the other end <2> The version without "result" was better <2> Oh I see, yes, it's now "last" -- I missed that part <2> Still probably better to search in the other direction, and return immediately when you find the right value. <7> i agree <10> hi <11> Hey people, I have a question about pool connections. I have a Servlet, when a request comes in, I get a database connection from the pool connections. After that I p*** that connection to my model (MVC). In my model, once I've done all the queries I need, do I have to close the connection ? I'm not sure if I have to do this but I have a feeling that yes, since the connection is p***ed by value ... <11> hey chris ? <12> sorry Bludlust but my english is not good <12> :| <13> hello o/ <14> I wish ppl read the topic.. <10> they come with their homework <10> i had one yesterday <10> he was like "read the exercice and tell me everything" <10> :)) <10> i told him "you should have listen to your teacher" <10> then --> ignore list <11> it's not a homeowrk <11> geez man <10> yes <10> you need to close the connection <10> if it's already close you would get an exception <11> yeah but by closing the connection .. does it affect my connection pool ? <11> I mean will it close the connection that's in the vector in my connection pool ? <11> my thinking is that, it doesn't matter, since I'm p***ing the connection to a method as an argument, the connection inside the method is actually just a copy of the connection. So closing it inside the method won't affect the actual connection from the pool <11> suppose I'm wrong <11> that means that everytime I close the connectino inside my method <11> the connection is lost and when I try to get a connectino from the pool it will constantly make a new one. <11> which completely destroys the purpose of a connection pool <11> I'm puzzled <11> anyways, I don't need you guys, I'll just run it in debug and see for myself. <15> good morning <14> good morning Clackwell <15> Bludlust: a decent connection pool hands out things that look and behave like connections, just that closing them leads to them being put back in the pool instead of closing it for real, as far as i know. it depends on the connection pool and how it wants to be used. <11> mm.. <15> Bludlust: just trying and to find out is a very good idea by the way. <15> -and <10> hi Clackwell <10> Clackwell, is it hard to implement "struts" on a project ? <15> shark_: i don't know. rob_uknow wrote the faq system, i never used any java web app framework myself. (servlets aside, which i do not consider a web app framework, rather the most primitive basic.) <15> he managed to write the faq system within a few weeks. he once said getting started with the tutorials worked ok for him. <10> i have checked quickly struts <10> xml parsing right ? <15> no idea. rob never said anything about xml in connection with struts. <11> struts has lots of things to be configured through xml config files <10> i think it's pretty hard <11> it's quite a learning curve to go through all the properties <10> compare to simple jsp/servlet <11> it is <11> I've tried learning it on my own <11> it was quite a challenge for me <11> there are simply too many different details to know about <11> if you do still want to learn it <11> I suggest using Eclipse and Maven <11> Maven will set you up a struts project in no time <11> then you'll have to start by figuring out where everything goes <10> okay <11> and the different xml config files <10> i keep that in note thx :) <11> hmm <11> i got disc <11> where was i <11> did you read my stuff about xdoclet? <11> xdoclet for your struts stuff
Return to
#java or Go to some related
logs:
#linux #AllNiteCafe make a folder bootable #MissKitten MacService reliability PHP5 Get_File_Contents #teens #linux #linux #networking
|
|