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 ... « 16 17 18 19 [20] 21 22 23 24 » ... 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

Originally posted by lorybu
Ragazzi ma come cavolo ordino le parole una volta lette???
voi avete utilizzato qualche interfaccia????
o degli array...
ma come si fa al limite a scorrere un iterator???


devi aggiungere l'Occorrenza all'oggetto che ti restituirà l'Iterator (so che alcuni hanno usato Sequenza)..

Se non sbaglio l'Iterator ha il metodo hasNext() e next()..

13-12-2003 19:25
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
Ina
.precettore.

User info:
Registered: Dec 2001
Posts: 96 (0.01 al dì)
Location: Verona
Corso: Informatica
Anno: quarto...della triennale!
Time Online: 21:28:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Grazie TMP...utilissimo...anche se non ho la più pallida di come fare ad aggiungere un campo integer!!!

__________________
Prendi la vita e rincorrila senza pietà
come la volpe impaurita rincorre la sua libertà.
-TIMORIA-

13-12-2003 19:53
Click Here to See the Profile for Ina Click here to Send Ina a Private Message Find more posts by Ina Add Ina 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
devi aggiungere l'Occorrenza all'oggetto che ti restituirà l'Iterator (so che alcuni hanno usato Sequenza)..

Se non sbaglio l'Iterator ha il metodo hasNext() e next()..



se Sequenza ritornava un oggetto in luogo di un boolean ci semplificava la vita e non poco

13-12-2003 19:56
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
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 Ina
Grazie TMP...utilissimo...anche se non ho la più pallida di come fare ad aggiungere un campo integer!!!



lo converti in stringa

13-12-2003 19:58
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
Ina
.precettore.

User info:
Registered: Dec 2001
Posts: 96 (0.01 al dì)
Location: Verona
Corso: Informatica
Anno: quarto...della triennale!
Time Online: 21:28:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

perchè quando scrivo java Test esempio.txt mi da questo:

Exception in thread "main" prog.io.TroppiCanaliDiinput: Puoi aprire al più un gestore per l'input da console
at pro.io.ConsoleInputManager.<init ConsoleInputManager.java:30)
at Test.test(Test.java:34)
at Test.main(Test.java:103)

Cosa vuol dire!!!!
Per me l'arabo sarebbe più facile!!!

__________________
Prendi la vita e rincorrila senza pietà
come la volpe impaurita rincorre la sua libertà.
-TIMORIA-

13-12-2003 20:06
Click Here to See the Profile for Ina Click here to Send Ina a Private Message Find more posts by Ina Add Ina 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 Ina
perchè quando scrivo java Test esempio.txt mi da questo:

Exception in thread "main" prog.io.TroppiCanaliDiinput: Puoi aprire al più un gestore per l'input da console
at pro.io.ConsoleInputManager.<init ConsoleInputManager.java:30)
at Test.test(Test.java:34)
at Test.main(Test.java:103)

Cosa vuol dire!!!!
Per me l'arabo sarebbe più facile!!!


Be', ti sta dicendo che non puoi aprire due "gestori per l'input da console" - cioè non puoi creare due ConsoleInputManager.

I punti in cui li crei sono la riga 34 e la riga 103 di Test.java.

Il tuo progettino l'hai scritto aggiungendo codice a Test.java? (se sì, mi sa che è meglio che lo metti in un file separato)

In ogni caso, il motivo dell'errore è, penso, che nel tuo progettino non puoi usare ConsoleInputManager, perché lo usa già Test.java.

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

13-12-2003 20:12
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
Ina
.precettore.

User info:
Registered: Dec 2001
Posts: 96 (0.01 al dì)
Location: Verona
Corso: Informatica
Anno: quarto...della triennale!
Time Online: 21:28:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

il fatto è che aal linea 103 cìè una meravigliosa parentesi graffa!!!!!!!!!

bo...vedrò...grazie!!!

__________________
Prendi la vita e rincorrila senza pietà
come la volpe impaurita rincorre la sua libertà.
-TIMORIA-

13-12-2003 20:13
Click Here to See the Profile for Ina Click here to Send Ina a Private Message Find more posts by Ina Add Ina 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 Ina
il fatto è che aal linea 103 cìè una meravigliosa parentesi graffa!!!!!!!!!

bo...vedrò...grazie!!!

Se non hai modificato Test.java, sì, c'è una graffa (la finale).
Se l'hai modificato, dammi retta, metti le modifiche (cioè si suppone il tuo progettino) in un altro file, riprenditi il Test.java originale, e ricompila.

Probabilmente avrai di nuovo un errore, ma stavolta leggermente più comprensibile.

Se non hai toccato Test.java, boh... dimmi la linea di comando che usi per compilare.

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

13-12-2003 20:23
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
Ina
.precettore.

User info:
Registered: Dec 2001
Posts: 96 (0.01 al dì)
Location: Verona
Corso: Informatica
Anno: quarto...della triennale!
Time Online: 21:28:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Fatto...adesso mi dice che il file non esiste!!!

:-(

__________________
Prendi la vita e rincorrila senza pietà
come la volpe impaurita rincorre la sua libertà.
-TIMORIA-

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

User info:
Registered: Dec 2001
Posts: 96 (0.01 al dì)
Location: Verona
Corso: Informatica
Anno: quarto...della triennale!
Time Online: 21:28:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non gli va giù il metoso exists nel main di test...non capisco perchè?

__________________
Prendi la vita e rincorrila senza pietà
come la volpe impaurita rincorre la sua libertà.
-TIMORIA-

13-12-2003 20:32
Click Here to See the Profile for Ina Click here to Send Ina a Private Message Find more posts by Ina Add Ina 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 Ina
non gli va giù il metoso exists nel main di test...non capisco perchè?

Copia e incolla tutto quello che fai, dalla compilazione alla (tentata) esecuzione.
E aggiungici anche un "dir" così vedo cosa c'è nella cartella, e un "set" per vedere le variabili.

È roba che puoi postare qui, basta che non ci sia dentro mezza riga di codice...

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

13-12-2003 20:35
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
Ina
.precettore.

User info:
Registered: Dec 2001
Posts: 96 (0.01 al dì)
Location: Verona
Corso: Informatica
Anno: quarto...della triennale!
Time Online: 21:28:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

allora:
TENTATA COMPILAZIONE di Test.java

Test.java:94: cannot resolve simbol
simbol: method exists (java.lang.String)
location: class prog.io.FileInputManager
} else if (!FileInputManager.exists(args[0])) {

1 error

TENTATA COMPILAZIONE DI Test esempio.txt
Il file specificato non esiste

DIR: E' un pò lungo da scrivere...comunque esempio.txt c'è come tutti i txt dati dal prof...

__________________
Prendi la vita e rincorrila senza pietà
come la volpe impaurita rincorre la sua libertà.
-TIMORIA-

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

User info:
Registered: Dec 2001
Posts: 96 (0.01 al dì)
Location: Verona
Corso: Informatica
Anno: quarto...della triennale!
Time Online: 21:28:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

set?

__________________
Prendi la vita e rincorrila senza pietà
come la volpe impaurita rincorre la sua libertà.
-TIMORIA-

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

User info:
Registered: Dec 2001
Posts: 96 (0.01 al dì)
Location: Verona
Corso: Informatica
Anno: quarto...della triennale!
Time Online: 21:28:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie!

__________________
Prendi la vita e rincorrila senza pietà
come la volpe impaurita rincorre la sua libertà.
-TIMORIA-

13-12-2003 20:53
Click Here to See the Profile for Ina Click here to Send Ina a Private Message Find more posts by Ina Add Ina 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

"set" è per vedere la lista delle variabili d'ambiente (tra cui il classpath).

Non capisco cosa sia "simbol" in quell'errore... bof.

Comunque per compilare tu fai
javac Test.java tuoprogetto.java

e per eseguire
java Test esempio.txt

giusto? (io non uso JavaC né la JVM della Sun, ma dovrebbero avere la stessa sintassi)

Non so proprio... magari prova a compilare un programma strasemplice che usa ConsoleInputManager e/o FileInputManager, e magari il metodo exists() dello stesso, e vedere se funge...

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

13-12-2003 21:01
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
All times are GMT. The time now is 11:30.    Post New Thread    Post A Reply
Pages (38): « First ... « 16 17 18 19 [20] 21 22 23 24 » ... 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.147 seconds (46.32% PHP - 53.68% MySQL) con 24 query.