@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> Just Use Lists(tm).
<1> but myFunc() returns an array, and I can't change it
<1> the function, that is
<0> Java doesn't have functions.
<0> You can make a list to add them too though, and convert them to lists as you do that.
<1> yeah will try that
<0> s/too/to/



<2> hello
<2> may i get some help here plsz
<1> yes
<1> I'm getting a cl***CastException... Should I be able to cast an Object[] to SomeCl***[] ?
<3> Lorraine: only if that Object[] is really a SomeCl***[].
<3> Tryf_Gone: away message may lead to away kicks in here.
<3> messages, rather
<2> i can't figure ou why my socket is closed after first wrting in it
<2> from the server app
<0> Becase you're closing the outputstream.
<3> crestinu: What is a test case? Why would you write one? See http://javafaq.mine.nu/lookup?22 (to show what you are *really* doing) Paste test case and any error messages to http://papernapkin.org/pastebin or another pastebin
<3> just an offer
<2> no
<2> i'm not
<2> belive ,me
<2> i'll do a paste bin of my code
<3> crestinu: on irc you learn to not believe people in tech channels like this one. the majority of people really believes to do X while their code shows that they do Y. just happens.
<2> i see
<2> ok guys ty for listenning me
<2> God bless u
<2> bye
<3> so much for him pasting his code...
<1> Hi again.. I'm getting a cl***CastException with the earlier problem while trying to convert an Object[] to SomeCl***[]



<1> and yet
<3> Lorraine: converting != casting
<1> I verified that the right object was in there : SomeCl*** obj = (SomeCl***) ArrayListOfObject.get(0);
<1> that didn't throw anything, and I always put the same type of object in there
<1> yeah, I mean casting
<1> I can't see the problem
<3> Lorraine: can you cast a (real) Object instance to String?
<1> no
<3> Lorraine: likewise you cannot cast a (real) Object[] instance to String[].
<1> ok but it's not a real Object[]
<1> it's rather a SomeCl***[]
<3> Lorraine: it's not of the type you try to cast it to either, it seems.
<3> Lorraine: test case?
<3> Lorraine: What is a test case? Why would you write one? See http://javafaq.mine.nu/lookup?22 (to show what you are *really* doing) Paste test case and any error messages to http://papernapkin.org/pastebin or another pastebin
<1> Ok, but it all happens in under 10 lines of code..
<3> so?
<3> i need to see the code to tell what you do wrong.
<1> a testcase would require me to pull out the function
<1> ok
<1> ok but you'd need libraries to compile it
<3> then it is not a test case.
<3> Lorraine: http://papernapkin.org/pastebin/app/view/101
<3> i have written a test case in the time it took to debate things here. :>
<3> i'm so cool.
<3> erh, phat, i mean, i'm so phat.
<1> ok lets see
<1> ahhh, I'll use find it out


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

tara waiter
#linux
#AllNiteCafe
#c
X-YahooFilteredBulk postfix
#java
#linux
ztod password
wer weird
#javascript



Home  |  disclaimer  |  contact  |  submit quotes