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 ... « 22 23 24 25 [26] 27 28 29 30 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
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 Pegasus83
sto controllando ma sono in sclero totale....son da due giorni e mezzo su sto coso...

Adesso non sono a casa mia e non ho il progettino davanti, ma per quello che mi ricordo, devi stare attento a comparare le *stringhe* presenti nei due Occorrenze, non gli oggetti Occorrenze... per esempio, questo è codice che è SBAGLIATO:

class Occorrenze {
....int compareTo(Object o) {
........return this.compareTo((Occorrenze)o);
....}
}

E stai anche attento che, con i cast, non devi scrivere (ad esempio):
(Occorrenze)o.parola
ma
((Occorrenze)o).parola

supponendo che parola sia la stringa di Occorrenze.

... oppure usa direttamente una variabile temporanea per il cast come facciamo a lezione.

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

14-12-2003 22:26
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
maja
.odio:statistica.

User info:
Registered: Oct 2002
Posts: 1257 (0.15 al dì)
Location: ormai dormo in Comelico :D
Corso: Informatica
Anno: terzo con riserva.
Time Online: 30 Days, 7:34:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

....il file Test.java compila,ma naturalmente esegue dicendomi solo "uso test.java" :pccrash: ,facendo qualche debug ho scoperto che la mia classe AnalizzatoreTesto fa un po'quel che vuole,in particolare non restituisce nè i titoli,nè le parole chiave,nè le occorrenze come devono essere restituite...
:help:
anche io come Pegasus83 però non demordo fino a domattina e che san Java ce la mandi buona....

__________________
Non si dice ottimista,si dice illuso.
Non si dice pessimista,si dice realista.


15-12-2003 07:13
Click Here to See the Profile for maja Click Here to See the Blog of maja Click here to Send maja a Private Message Find more posts by maja Add maja 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

sto metodo find di SequenzaOrdinate non c'è verso di farlo funzionare

Last edited by mark on 15-12-2003 at 07:40

15-12-2003 07:38
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
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

ORDINATE LESSICOGRAFICAMENTE RISPETTO AL TITOLO DELLA VOCE:

Nemmeno io avevo capito cosa intendesse, ma poi ho guardato i sui files di esempio. Continuo a non capire cosa significhi quella frase, ma il risultato è occorrenze di TUTTE LE PAROLE in ordine alfabetico..

15-12-2003 08:32
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
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

voi avete messo le tre classi in unico file???ma le avete inserite distinguendole o trattando tutto come un'unica classe?

15-12-2003 08:51
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
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

Anche a me questa cosa risulta un po' strana..

Voi avete usato qualche altro metodo oltre a quelli richiesti?

15-12-2003 08:53
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
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io no e a me funziona tutto correttamente

15-12-2003 08:55
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
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

Si, anche a me, era per curiosità: con qualche altro metodo il programma è un po' più pulito..

De gustibus...

15-12-2003 08:56
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
yoruno
.grande:maestro.

User info:
Registered: Jul 2003
Posts: 10602 (1.28 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 elpampero
voi avete messo le tre classi in unico file???ma le avete inserite distinguendole o trattando tutto come un'unica classe?

Unico file, strutturato così:
code:
class AnalizzatoreTesto { ... } class Occorrenze { ... } class VociIndice { ... }

__________________
"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 :::

15-12-2003 08:58
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
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si ma per esempio io ho importato 3 volete le stesse librerie...voi?

15-12-2003 08:59
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero 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.28 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 T_M_P
Voi avete usato qualche altro metodo oltre a quelli richiesti?


No, nessuno, però ho utilizzato il compareTo di String per fare il compareTo delle Occorrenze...

__________________
"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 :::

15-12-2003 08:59
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
yoruno
.grande:maestro.

User info:
Registered: Jul 2003
Posts: 10602 (1.28 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 elpampero
si ma per esempio io ho importato 3 volete le stesse librerie...voi?


Una sola volta, in cima alle 3 classi, ci pensa poi il compilatore a importarle correttamente...

__________________
"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 :::

15-12-2003 09:00
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
elpampero
Aniversario

User info:
Registered: Sep 2003
Posts: 911 (0.11 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: I
Time Online: 8 Days, 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ok

15-12-2003 09:05
Click Here to See the Profile for elpampero Click here to Send elpampero a Private Message Find more posts by elpampero Add elpampero to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Oracle
Matroide

User info:
Registered: Aug 2003
Posts: 368 (0.04 al dì)
Location:
Corso: informatica della comunicazione
Anno: oo
Time Online: 5 Days, 23:00:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao,
ho visto che molti hanno problemi con l'ordinamento, ma non
si può usare SequenzaOrdinata al posto di Sequenza ???
Per il compareTo quello di String non va bene ???

__________________
Divide et impera

15-12-2003 09:12
Click Here to See the Profile for Oracle Click here to Send Oracle a Private Message Visit Oracle's homepage! Find more posts by Oracle Add Oracle to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
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

Certo che va bene!

15-12-2003 09:20
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
All times are GMT. The time now is 14:10.    Post New Thread    Post A Reply
Pages (38): « First ... « 22 23 24 25 [26] 27 28 29 30 » ... 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.142 seconds (40.38% PHP - 59.62% MySQL) con 24 query.