@# Quotes DB     useful, funny, interesting





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



Comments:

<0> yes
<0> and then ?
<1> um
<0> what does bin(101) give ?
<1> 2 + 1 ?
<0> 2*bin(10) +1
<1> so its 2*2*bin(10) + 1
<1> right/



<0> no
<0> add parenthises
<1> oh ye
<1> right, i get it...
<1> cheers calchas
<0> good
<2> Meddi: did you actually try compiling and running it?
<0> but it's a very silly way to approach base conversion
<2> it clearly works (even if it *is* bloody horrible)
<0> smsie yes he did, he just couldn't work out why it worked
<2> ah, that's fair I guess
<1> yeh it worked but as calchas i couldnt work it out
<3> another questions , need to create an object during runtime , ... Object f= new Object[] { "test",3 }; .... and the next one coould be Object f= new Object[] { 6,"aaa","eee" }; so I want to create object of variable length during runtime . any example ?
<4> dududa: ArrayList would be my choice.
<2> kill whoever writes that exam
<1> haha
<1> good point :P
<3> can array lists contain ellements of different type ?
<2> it can contain elements of type Object
<3> oops ... think I get it now
<3> cheers
<2> and these days with autoboxing, that's enough for primitive types too
<5> question about net beans creation of project from existing source files: why would a .java file not be considered as a java file ?
<5> because u cant name the extension .Java
<5> lollllllllllllllllllllllll
<3> me again , is there a cl*** in java that the constructor gets a boolean array/string array in the constructor
<3> ?



<3> the reason I want that is cause I look for the type codes using reflectio, the premetive types are easy to find
<3> [C is a charater array for example
<3> want to know for string and for boolean
<6> primitive
<6> dududa: what does "a cl*** in java that the constructor gets a boolean array/string array in the constructor" mean?
<7> overloaded constructor?
<3> oh ok ... Boolean b = new Boolean[]{true,false,true}; JavaSomecl*** jsm = new JavaSomecl***(jsm);
<3> the same for string
<3> I am just trying to find the representation code
<3> for boolean arrays and for string , cause byte is [B I cannot guess the boolean
<7> Boolean b = new Boolean(true,false,true);
<3> I dont think I made clear what I am looking for
<3> whan I use .getParameterTypes() I get values based on the supported parameters by the constructor
<3> whan there is an array ...you get something like [C for char array , [B for byte array , [F for floats and so on ...
<3> I am trying to find the string that .getParameterTypes() gives when there is a boolean and string array
<3> found it
<3> thx anyway
<8> if i want the index of the last element in an array list to i just use arraylist.size() - 1; ?
<4> API doc time?
<4> next: test case time?
<4> why not give this a try? Create an arraylist, add stuff, check what comes out of the size() method.
<4> you might even learn something.
<8> well i know size() returns the number of elements
<8> and i know that the first element starts at 0
<8> so i just ***ume you can find it by how i said in my question
<4> well, then thats settled.
<8> so its correct then ?
<4> Ang3lu5: check the API docs? Write a test case?
<8> i'm trying to follow a simple DAO design pattern
<8> and create a transport object
<4> it helps to know what you're working with. If you would have read the docs you'd know that it is theoreticly possible for an ArrayList to contain dangleing (or whatever the verb is) elements. Thats why it has methods to clean it up.
<4> hence my comment: give it a try.
<8> i see
<8> you mean trimTosize() ?


Name:

Comments:

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






Return to #java
or
Go to some related logs:

#linux
limassol and part-ime
#c++
#skype
#MissKitten
scroll pane preffered
#linux
have a radio button checked by deafult
#c++
#php



Home  |  disclaimer  |  contact  |  submit quotes