|
johnnyd |
[Capra] Terzo Progettino |
26-01-2006 09:43 |
|
|
johnnyd |
.grande:maestro.
Registered: Sep 2005
Posts: 840 (0.12 al dì)
Location: Milano (Fragagnano)
Corso: Informatica
Anno: IV
Time Online: 13 Days, 22:13:29 [...]
Status: Offline
Edit | Report | IP: Logged |
[Capra] Terzo Progettino
dite che lo pubblicherà il 30 e poi lo vorrà per il 31?
__________________
My Blog - My Photo Album
|
26-01-2006 09:43 |
|
|
| |
|
johnnyd |
azz...l'ha messo..è un pò difficilotto :D ragà ... |
26-01-2006 11:11 |
|
|
johnnyd |
.grande:maestro.
Registered: Sep 2005
Posts: 840 (0.12 al dì)
Location: Milano (Fragagnano)
Corso: Informatica
Anno: IV
Time Online: 13 Days, 22:13:29 [...]
Status: Offline
Edit | Report | IP: Logged |
azz...l'ha messo..è un pò difficilotto ragà ma qui ci si può aiutare a vicenda?
__________________
My Blog - My Photo Album
|
26-01-2006 11:11 |
|
|
| |
|
Antonio86 |
Qualcuno ha capito che cosa sostanzialmente bisogn ... |
27-01-2006 13:32 |
|
|
Antonio86 |
.consigliere.
Registered: Oct 2005
Posts: 148 (0.02 al dì)
Location: Novara
Corso: Informatica
Anno: Primo
Time Online: 19:09:36 [...]
Status: Offline
Edit | Report | IP: Logged |
Qualcuno ha capito che cosa sostanzialmente bisogna fare? Sembrerebbe dall'intestazione una classe che implementa Iterator, ma non ne sono sicuro.
__________________
You byte the hand that feeds you
|
27-01-2006 13:32 |
|
|
| |
|
johnnyd |
io nn so da dove cominciare ...
... |
28-01-2006 13:30 |
|
|
johnnyd |
.grande:maestro.
Registered: Sep 2005
Posts: 840 (0.12 al dì)
Location: Milano (Fragagnano)
Corso: Informatica
Anno: IV
Time Online: 13 Days, 22:13:29 [...]
Status: Offline
Edit | Report | IP: Logged |
io nn so da dove cominciare ...
hai msn antò?
io ho fatto una classe tipo occorrenza cn qualke metodo in più xò nn ho capito kosa sia questo multiset..grrr
__________________
My Blog - My Photo Album
|
28-01-2006 13:30 |
|
|
| |
|
Antonio86 |
neppure io...le sto provando tutte ma non capisco ... |
28-01-2006 15:04 |
|
|
Antonio86 |
.consigliere.
Registered: Oct 2005
Posts: 148 (0.02 al dì)
Location: Novara
Corso: Informatica
Anno: Primo
Time Online: 19:09:36 [...]
Status: Offline
Edit | Report | IP: Logged |
neppure io...le sto provando tutte ma non capisco come fare...
__________________
You byte the hand that feeds you
|
28-01-2006 15:04 |
|
|
| |
|
johnnyd |
hai questo cavolo di msn??? :D:D:D:D ... |
28-01-2006 18:13 |
|
|
johnnyd |
.grande:maestro.
Registered: Sep 2005
Posts: 840 (0.12 al dì)
Location: Milano (Fragagnano)
Corso: Informatica
Anno: IV
Time Online: 13 Days, 22:13:29 [...]
Status: Offline
Edit | Report | IP: Logged |
hai questo cavolo di msn???
__________________
My Blog - My Photo Album
|
28-01-2006 18:13 |
|
|
| |
|
Antonio86 |
Non ce l'ho. ... |
29-01-2006 08:31 |
|
|
Antonio86 |
.consigliere.
Registered: Oct 2005
Posts: 148 (0.02 al dì)
Location: Novara
Corso: Informatica
Anno: Primo
Time Online: 19:09:36 [...]
Status: Offline
Edit | Report | IP: Logged |
Non ce l'ho.
__________________
You byte the hand that feeds you
|
29-01-2006 08:31 |
|
|
| |
|
dafth |
Ragazzi l'ho appena terminato, a voi come vanno le ... |
29-01-2006 13:00 |
|
|
dafth |
.fedelissimo.
Registered: Oct 2005
Posts: 48 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 5:15:16 [...]
Status: Offline
Edit | Report | IP: Logged |
Ragazzi l'ho appena terminato, a voi come vanno le cose?
(per Antonio89) P.S. non conviene implementare la classe Iterator ricorda che devi mantenere due oggetti (elemento,molteplicità)
Un MultiSet non è altro che una struttura dati associativa
dove la chiave è l'elemento ed il valore è la molteplicità
|
29-01-2006 13:00 |
|
|
| |
|
Kurt84 |
Ma il metodo toIterable cosa deve restituire: un e ... |
29-01-2006 18:39 |
|
|
Kurt84 |
.consigliere.
Registered: Oct 2005
Posts: 146 (0.02 al dì)
Location:
Corso: Informatica
Anno: 1
Time Online: 3 Days, 9:07:39 [...]
Status: Offline
Edit | Report | IP: Logged |
Ma il metodo toIterable cosa deve restituire: un elenco di occorrenze iterabile o un elenco di oggetti?
cioè io avrei scritto return this.nuovo.iterator();
dove nuovo è la sequenza, così mi ha restituito una sequenza di occorrenze. Solo che compilando mi da errore dicendomi che deve restituire Iterable<e> e non Iterator<Occorrenza<E>>
|
29-01-2006 18:39 |
|
|
| |
|
dafth |
this.nuovo è un'istanza della classe Occorrenza |
29-01-2006 18:45 |
|
|
dafth |
.fedelissimo.
Registered: Oct 2005
Posts: 48 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 5:15:16 [...]
Status: Offline
Edit | Report | IP: Logged |
this.nuovo è un'istanza della classe Occorrenza<E> ???
|
29-01-2006 18:45 |
|
|
| |
|
dafth |
*Sequenza non Occorrenza :) ... |
29-01-2006 18:46 |
|
|
dafth |
.fedelissimo.
Registered: Oct 2005
Posts: 48 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 5:15:16 [...]
Status: Offline
Edit | Report | IP: Logged |
*Sequenza<E> non Occorrenza <E>
|
29-01-2006 18:46 |
|
|
| |
|
dafth |
Suppongo
... |
29-01-2006 18:47 |
|
|
dafth |
.fedelissimo.
Registered: Oct 2005
Posts: 48 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 5:15:16 [...]
Status: Offline
Edit | Report | IP: Logged |
Suppongo
this.nuovo = new Sequanza<E>
prova a mettere
return this.nuovo
|
29-01-2006 18:47 |
|
|
| |
|
Kurt84 |
MultiSet.java:108: incompatible types
... |
29-01-2006 18:53 |
|
|
Kurt84 |
.consigliere.
Registered: Oct 2005
Posts: 146 (0.02 al dì)
Location:
Corso: Informatica
Anno: 1
Time Online: 3 Days, 9:07:39 [...]
Status: Offline
Edit | Report | IP: Logged |
MultiSet.java:108: incompatible types
found : prog.utili.Insieme<prog.utili.Occorrenza<E>>
required: java.lang.Iterable<E>
scusa nn avevo specificato, this.nuovo è new Insieme<Occorrenza<E>>
|
29-01-2006 18:53 |
|
|
| |
|
dafth |
Potresti provare in questo modo anche se un pò ma ... |
29-01-2006 19:02 |
|
|
dafth |
.fedelissimo.
Registered: Oct 2005
Posts: 48 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 5:15:16 [...]
Status: Offline
Edit | Report | IP: Logged |
Potresti provare in questo modo anche se un pò macchinoso
code:
Sequenza<E> sequenza = new Sequenza<E>();
for (Occorrenza<E> occorrenza : nuovo)
for (int i = 0; i< occorrenza.getValoreContatore(); i++)
sequenza.add(occorrenza.get());
return sequenza;
in questo modo restituisce un Iterable con tutte le occorrenze considerando le ripetizioni
oppure al posto di Sequanza<E> puoi utilizzare Insieme<E>
Last edited by dafth on 29-01-2006 at 19:14
|
29-01-2006 19:02 |
|
|
| |
|
dafth |
P.S. scusa per gli errori nel codice ho scritto ve ... |
29-01-2006 19:03 |
|
|
dafth |
.fedelissimo.
Registered: Oct 2005
Posts: 48 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 5:15:16 [...]
Status: Offline
Edit | Report | IP: Logged |
P.S. scusa per gli errori nel codice ho scritto veloce
|
29-01-2006 19:03 |
|
|
| |
|
All times are GMT. The time now is 19:54. |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|