|
|
The Inn A place to gather around and chat about almost any subject |
|
Thread Tools | Display Modes |
04-02-2009, 10:50 PM | #11 | |
Duke
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
|
Quote:
It makes an array with the arguments. You can cast the code with 2, 3 or more arguments. Some sample code: Code:
Database database = DatabaseFactory.getDatabase( DatabaseFactory.SQLITE3, "/tmp/test.db", null, null); String[] data = {"xephandor", "19"}; String[] data2 = {"saskia", "19"}; String[] data3 = {"erland", "19"}; DataResult[] result = database.executeStatement("delete from users where name='?' and age=?",data, data2, data3); I know, the implementation sucks big time, but it may work.
__________________
I don't have a solution, but I admire the problem. |
|
04-02-2009, 11:13 PM | #12 | |
Duke
Join Date: Jan 2007
Posts: 3,939
|
Quote:
For Eli2: Code:
String... === String[] Code:
String[]... === String[][]
__________________
"Nunca un científico ha quemado a un religioso por afirmar a Dios sin pruebas". Manuel Toharia "uno empieza a darse cuenta que eso de no hacer ejercicio, comer y beber como si fuese la ultima cena y mantener la figura ya no existe...". Maryan |
|
04-02-2009, 11:28 PM | #13 |
Count
Join Date: Jan 2008
Location: England, UK.
Posts: 1,055
|
__________________
MattdoesJOKE_#40_NOT_FOUND
RA / Hor... Haven? |
04-02-2009, 11:45 PM | #14 | |
Duke
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
|
Quote:
__________________
I don't have a solution, but I admire the problem. |
|
04-03-2009, 01:28 AM | #15 |
Apprentice
Join Date: Jun 2007
Posts: 73
|
Ah ok
I have never seen this syntax, and never needed to use it. Although it seems to be really common. http://en.wikipedia.org/wiki/Variadic_function
__________________
Regnum: It's Highly Addictive! |
04-03-2009, 01:29 AM | #16 |
Count
Join Date: Jan 2008
Location: England, UK.
Posts: 1,055
|
__________________
MattdoesJOKE_#40_NOT_FOUND
RA / Hor... Haven? |
04-03-2009, 01:59 AM | #17 | |
Duke
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
|
Quote:
Another improvement in Java 1.5 were the for-each loops. REALLY useful when you just want to iterate a list, it saves a lot of typing (and you know that most of the bugs come from typos).
__________________
I don't have a solution, but I admire the problem. |
|
04-03-2009, 02:45 AM | #18 | |
Count
Join Date: Nov 2007
Location: Infinite Improbability Drive
Posts: 1,287
|
Quote:
__________________
Hit me, nail me, make me God. Panoramix :: Half Elf Hunter ## Miraculix :: Half Elf Marksman ## Aspirinix :: Wood Elf Conjurer Syrtis :: Horus :: Antartes |
|
04-03-2009, 03:59 AM | #19 | |
Duke
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
|
Quote:
__________________
I don't have a solution, but I admire the problem. |
|
04-03-2009, 11:23 AM | #20 | |
Duke
Join Date: Jan 2007
Posts: 3,939
|
Quote:
I have discovered the java's printf (this is real, and i like it!) String.format()
__________________
"Nunca un científico ha quemado a un religioso por afirmar a Dios sin pruebas". Manuel Toharia "uno empieza a darse cuenta que eso de no hacer ejercicio, comer y beber como si fuese la ultima cena y mantener la figura ya no existe...". Maryan |
|
Tags |
regnum time, surak |
|
|