|
|
The Inn A place to gather around and chat about almost any subject |
![]() |
|
Thread Tools | Display Modes |
![]() |
#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. |
|
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
#13 |
Count
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2008
Location: England, UK.
Posts: 1,055
![]() ![]() |
![]()
__________________
MattdoesJOKE_#40_NOT_FOUND
RA / Hor... Haven? |
![]() |
![]() |
![]() |
#14 | |
Duke
![]() ![]() Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
![]() ![]() ![]() ![]() ![]() |
![]() Quote:
__________________
I don't have a solution, but I admire the problem. |
|
![]() |
![]() |
![]() |
#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! |
![]() |
![]() |
![]() |
#16 |
Count
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2008
Location: England, UK.
Posts: 1,055
![]() ![]() |
![]()
__________________
MattdoesJOKE_#40_NOT_FOUND
RA / Hor... Haven? |
![]() |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
#19 | |
Duke
![]() ![]() Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
![]() ![]() ![]() ![]() ![]() |
![]() Quote:
__________________
I don't have a solution, but I admire the problem. |
|
![]() |
![]() |
![]() |
#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 |
Thread Tools | |
Display Modes | |
|
|