Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Programmazione > [PROGRAMMAZIONE] Help 2^ Progettino!!! A.A.04/05
Pages (38): « First ... « 19 20 21 22 [23] 24 25 26 27 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non so con Sequenza, non ho guardato, ma in effetti usando il metodo contains ho snellito di molto il codice!!

grazie dell'idea!

controlli se esiste, se esiste ti fai dare l'index, prendi l'oggetto e aggiungi la linea, altrimenti aggiungi una nuova occorrenza..

14-12-2003 18:01
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by T_M_P
Non so con Sequenza, non ho guardato, ma in effetti usando il metodo contains ho snellito di molto il codice!!

grazie dell'idea!

controlli se esiste, se esiste ti fai dare l'index, prendi l'oggetto e aggiungi la linea, altrimenti aggiungi una nuova occorrenza..



prego, ma la dritta serviva anche a me :(

14-12-2003 18:49
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gioe
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 521 (0.06 al dì)
Location: Piacenza
Corso: Informatica
Anno: 3
Time Online: 25 Days, 8:18:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

volevo sapere... per il getParoleChiave().... le parole chiave vanno solo in ordine alfabetico o cosa? cosa si intende per lessicograficamente ordinate rispetto al titolo?

__________________
@~@~@~@~@~@~@~@~@~@

TIMEO DANAOS ET DONA FERENTES

@~@~@~@~@~@~@~@~@~@

14-12-2003 19:40
Click Here to See the Profile for Gioe Click here to Send Gioe a Private Message Find more posts by Gioe Add Gioe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LjL
.consigliere.

User info:
Registered: Dec 2003
Posts: 144 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Primo
Time Online: 16:25:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Gioe
Ho chiesto a Ferrari e mi ha risposto anche lui di usare la prima, lo ha pure messo nei chiarimenti :)

Sì, in effetti la cosa migliore in questi casi è chiedere... ma sono troppo pigro per usare la posta elettronica :-)

__________________
by LjL
ljlbox@tiscali.it
http://ljl.150m.com - appunti corsi

14-12-2003 19:43
Click Here to See the Profile for LjL Click here to Send LjL a Private Message Visit LjL's homepage! Find more posts by LjL Add LjL to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LjL
.consigliere.

User info:
Registered: Dec 2003
Posts: 144 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Primo
Time Online: 16:25:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by T_M_P
Io non uso Sequenza ma LinkedList.. Più o meno funzionano in modo simile.. Secondo me nel nostro caso non possiamo usare ".contains" perchè dobbiamo fare un lavoro di aggiunta all'Occorrenza che troviamo uguale.

Con contains sai solo se esiste...

Comunque poi ci guardo meglio.. :)

Non ho la più pallida idea di come funzioni LinkedList (né, onestamente, ho voglia di andare a guardare... tanto Java non mi piace :-), ma per quanto riguarda Sequenza, c'è anche il metodo find().
In un colpo solo ti dice se il coso esiste (altrimenti ritorna null), e ti fornisce il riferimento.

Io, comunque, uso ugualmente una frase del tipo
if(quellarobali.contains(quellaltraroba)) {
quellarobali.find(quellaltraroba).add(eccetera);
}

(cast omessi, ma ci devono essere)

E' probabile che non sia altrettanto efficiente, ma me ne frego... se Sequenza è stata fatta bene, contains() dovrebbe mettere in una cache il suo risultato e renderlo disponibile a find(). Se non lo fa, cavoli suoi :-)

__________________
by LjL
ljlbox@tiscali.it
http://ljl.150m.com - appunti corsi

14-12-2003 19:48
Click Here to See the Profile for LjL Click here to Send LjL a Private Message Visit LjL's homepage! Find more posts by LjL Add LjL to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ho provato anch'io il metodo da te proposto ma a me non funziona

14-12-2003 20:24
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io sono incasinato con il metodo compareTo, quanso faccio partire mi dice
java.lang.StackOverflowError

__________________
Il Pega
www.pegasus83.com

14-12-2003 20:26
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

e oltretutto quando mi stampa l'indice mi scrive "null" prima di ogni voce dell'indice

__________________
Il Pega
www.pegasus83.com

14-12-2003 20:27
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Pegasus83
io sono incasinato con il metodo compareTo, quanso faccio partire mi dice
java.lang.StackOverflowError



forse stai confrontando oggetti del tipo errato

14-12-2003 20:30
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yoruno
.grande:maestro.

User info:
Registered: Jul 2003
Posts: 10602 (1.29 al dì)
Location: Altrove
Corso: 404 error
Anno: 404 error
Time Online: 123 Days, 2:50:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Pegasus83
io sono incasinato con il metodo compareTo, quanso faccio partire mi dice
java.lang.StackOverflowError


Thrown when a stack overflow occurs because an application recurses too deeply.

In pratica c'è un ciclo infinito...

__________________
"Voi che tingete i mari del colore dello zinco, che tramutate i boschi in gialli deserti, i venti in fumi di polveri da sparo e che bruciate i cieli. Voi che volete ripetere i malvagi atti della sconsiderata Lilith, che fu la prima moglie di Adamo e poi la sposa del Diavolo. Voi che volete ripetere la ribellione scatenata da Lucifero, del mondo celeste il più splendente. Voi! Ascoltate l'afflizione della sottospecie alata che vola alta nel cielo." [Angel Sanctuary]
::: mail: yoruno@dsy.it ::: ::: My Site ::: ::: Dsy Photo Gallery ::: ::: DeviantART Gallery :::

14-12-2003 20:38
Click Here to See the Profile for yoruno Click Here to See the Blog of yoruno Click here to Send yoruno a Private Message Visit yoruno's homepage! Find more posts by yoruno Add yoruno to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si stavo leggendo la documentazione e ho trovato 2 minuti fa...ma devo capire come risolverlo....

__________________
Il Pega
www.pegasus83.com

14-12-2003 20:40
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gioe
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 521 (0.06 al dì)
Location: Piacenza
Corso: Informatica
Anno: 3
Time Online: 25 Days, 8:18:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Pegasus83
e oltretutto quando mi stampa l'indice mi scrive "null" prima di ogni voce dell'indice


probabilmente hai inizializzato a null la stringa per l'indentazione, devi invece inizializzarla con String indentazione = " ";

Spero che ti sia di aiuto :)

__________________
@~@~@~@~@~@~@~@~@~@

TIMEO DANAOS ET DONA FERENTES

@~@~@~@~@~@~@~@~@~@

14-12-2003 20:41
Click Here to See the Profile for Gioe Click here to Send Gioe a Private Message Find more posts by Gioe Add Gioe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma SequenzaOrdinata ha il metodo find ?

sul libro leggo che esiste ma nella classe che ho io no

14-12-2003 20:47
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

che io sappia il metodo find esiste

__________________
Il Pega
www.pegasus83.com

14-12-2003 20:48
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ho decompilato e non esiste

14-12-2003 20:59
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 20:44.    Post New Thread    Post A Reply
Pages (38): « First ... « 19 20 21 22 [23] 24 25 26 27 » ... Last »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.244 seconds (56.04% PHP - 43.96% MySQL) con 24 query.