| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> how can i simulate call by value using call by reference? <1> call by value == p*** by value? <2> ebbtepid: clone the p***ed object then if you have to. <3> hey <3> what if I hace constructor1(byte[] bytes) and constructor2(String str) and I want to call from constructor1 constructor2 ? can I do that? <2> _check_: sure <3> cool, how? :) <3> wlfshmn, would you show me the secret? :p <2> It's no secret. The whole net is full of wonderfull resources for basic java syntax. <3> :( <2> _check_: See, the point of homework is for you to learn these things on your own. It's no fun if I tell you the anwers. <4> lol <2> _check_: plus, I enjoy seeing people panic. <4> That's the polite way of saying RTFM :) <5> ***ignment due eh, check?
<3> I'm writing a MIDP for a mobile phone <6> I'm p***ing a java string to a c program using JNI, does anyone know how to p*** non standard ascii string, in other words with characters with ascii value greater than 127 <5> g'nite! <3> ...found it damn'it! ;) <4> DrKnow: Seems like a char would work <4> 0-255 ascii values <1> ascii only goes up to 127, not 255 <1> but chars in C are only one byte <1> and can be signed or unsigned <4> right unsigned char will do <1> well, if you just a "char" it might be signed, it might be unsigned <1> depends on the implementation <4> yes <4> ascii goes higher than 127 <1> since when? <4> after that it's called "extended ascii" <1> extended ascii, aka not ascii <4> semantics, both are ascii, we're in agreement <1> afaik extended ascii is not standardized <4> http://www.newebgroup.com/rod/asciicodes.asp <1> http://en.wikipedia.org/wiki/Extended_ASCII <4> It's the same 256 characters it's always been. Anyway, I think he's gone. <1> read the first paragraph <1> it's never been more than 128 <1> it's a 7-bit encoding <3> if I have a cl*** which extends a Form, why can't I set the setCommandListener(...) inside the cl*** ? <7> what is the java editor wich take less ressources <7> 6 <8> JCreator <8> or <8> UltraEdit <1> ex <1> :) <9> hey javaq <9> what you think which is best development studio <7> ok <1> it would be pretty hard to get more light weight than ex, but ex wouldn't be my first choice ;) <8> who's ex? <1> ex is an editor <1> (a line editor) <1> the predecessor to vi <10> wb talios <11> 'lo <12> bonjour chers dveloppeurs! <1> yo <13> hello, anyone here use jbuilder ? <14> quien esta programando ahora <15> and now the english translation ... <14> is anyone progamming at this moment <14> sorry i forget spanish is not the default language <8> why? <5> Hey talios :-) <11> hihi <16> anybody here have problems after updating the JRE? I get Loading Java Applet Failed.. in my browsers <17> stupid, stupid noobish question: i want to load a native dll (com.ice.jni.registry, fyi); am I going to be able to register it and such via java, or do I have to do this when my code is installing (ie, regsvr32.exe) <17> ah: nevermind <18> regsvr is for com stuff, not accessing DLLs in general.
<17> second stupid question which needs some hand holding: Enumerations & collections. When I do a for (Enumeration e = foo.getEnumeration(); e.hasMoreElements()) { System.out.println(); <19> hi <17> oops -> s/()/(e.nextElement); } - e is an Enumeration object. that sits well in my head. But the actual thing I am iterating through, how am i supposedly accessing that (and therefore, all of it's member varibles and methods and whatnot) <18> hallo cal <18> HidingWerx: have you seen the api doc page of Enumeration? <17> ie, in PHP: foreach($arrayOfObjects as $obj) { print $obj->someMethod(); } <17> i'm looking at it <19> the enumerator is used to get the sequence of object references, you call methods on those as you loop through <17> but it's sitting funnily in my head <19> JAVA IS NOT PHP scripting <19> can't help with funnily head <17> relax: i'm fully aware the two are worlds apart, but concepts have similar uses regardless of the language <18> HidingWerx: all you have to work with is Enumeration. the api doc page lists all your options. <19> HidingWerx I have four pieces of chocolate for you <19> would you like the first piece ? <19> yes or no ? <17> yessum <19> answer is yes (I can't wait for you to be bright enough) <19> here it is <19> what are you going to do with it ? <19> answer smell it, eat it <17> eat it and ask for the next <19> would you like the second piece ? <19> etc <19> that's how the enumerator works <19> it has objects for you not chocolate <17> yes yes yes, i grok: did you know that the api dox don't make any mention of references / pointers / etc; which would have prevented the stupid questions. <19> HidingWerx do the tutorial like a good boy <18> HidingWerx: the api docs are just that, api documentation. they are not for teaching java fundamentals. that is the job of the sun java tutorial and decent books like "thinking in java". <19> Object as a return type is an object reference <19> in java that is all you ever have except for the primitive types <19> the API docs ***ume you know the java language, best go learn it <19> btw API is not part of the language <17> next stupid question: e.nextElement(); on the first iteration, what's in e before I call nextElement? the item #0 or #1 in the collection? <19> also the api extensively uses references :), you just don't see it because you haven't learnt the java language yet <18> HidingWerx: there is nothing "in" e. e is an Enumeration object. it gives you information wether there are more elements and references to each of these elements, if used correctly. <19> e is an enumeration, it holds a collection of objects, and always does so <19> e is not a container <17> k; thanks <19> it is the same as my hand and eyes in the chocolate example <18> "are there more thinkgs?" "yes" "give me a pointer to the next thing" "here you go" "ok, now i have a pointer to a thing, and i know this thing is a String, so i cast it to a String to be able to access the methods of the String cl*** on it" <18> things <19> HidingWerx it's best for you to do some of the tutorial and thinking in java, and quickly <20> next rev of TIJ is HUGE <20> 1400 pages or so <19> bloat ware lives <21> Does somone can explane how would you do something like that: I need to have to arraylist synchronize together, One for the name of the items and the other one for the qty of the items. For example: Arraylist One Postions: 0: Book 1: Tomato 2: Apple... And the Arraylist Two Positions: 0: 5 1: 3 2: 1... This will be 5 Books, 3 Tomato, 1 Apple... <22> No homework. <21> I dont knoe if someone can point me to a good example of multiple arraylist <21> it is not a homework... <22> Of course it is. <19> just make a copy <21> I don't want the code... I just want to know the concept... <19> iterate from first to last, then add each element in that order to the new list <22> I suspect you'd be better off with a Map than with two ArrayLists <19> to be honest to list of references synchronized makes little sense <19> yes a list of maps looks better <23> anyone know where i can find a script. when i press a thumb (one of like 5 or so) it displays the orginal full pic. <19> no javascript here see topic <19> this is a java chan <23> oh <21> Those someone know where I can get info or a tutorial for Multiple arraylist synchronisation... I have three Java books in front of me and I can't find something on multiple arraylist! <19> just make a copy then define methods to keep them updated together <19> is that not clear <19> and why not use a map for your work <19> I don't think you want 'multiple lists' <19> if not a map then a simple record object <21> because I don't know how to use a map :( <19> then learn <22> Time to learn. <19> it's simpler than getting it wrong
Return to
#java or Go to some related
logs:
#linux #linux #c ethiopian restourant #linuxhelp +dmx +kde
#linux #apache #linux #php
|
|