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. > Community > Tech > [java] 1.4.2 VS 1.5
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
luna
.grande:maestro.

User info:
Registered: Apr 2003
Posts: 4565 (0.55 al dì)
Location: Rozzano
Corso:
Anno: Ormai finito!
Time Online: 102 Days, 14:49:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[java] 1.4.2 VS 1.5

ciao!!:D
ho installato la versione 1.5 di java e facendo girare un progetto che è stato testato con la 1.4 mi da' errori di compilazione sui Vector..Sapete che sintassi corretta bisogna usare per farlo andare?:D
Grazie!!:D

__________________
"Solamente il cuore ti permette di vedere chiaramente.L'essenziale e' invisibile agli occhi"
bisogna vivere "alla giornata", senza crearsi troppe aspettative. quello che viene sarà un "di più" ed è da mettere nel salvadanaio.
Sono troppo una grilla petulante :D by Nous

05-10-2006 15:04
Click Here to See the Profile for luna Click Here to See the Blog of luna Click here to Send luna a Private Message Find more posts by luna Add luna to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
hannibal
.illuminato.

User info:
Registered: Sep 2004
Posts: 198 (0.03 al dì)
Location:
Corso: Informatica Magistrale
Anno:
Time Online: 6 Days, 1:14:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Eh.. è un pò difficile dirlo così, però andando un pò ad intuito credo che ti dia errore perchè il progetto usa ancora dei wrapper per aggiungere valori ad un vettore. Normalmente in java quando vuoi aggiungere una variabile primitiva (char, integer, ecc) ad un Vector devi istanziare un nuovo oggetto con una classe wrapper (ad esempio Integer) invocando il costruttore.
Java 1.5 compie questa operazione in modo del tutto automatico (finalmente!), quindi dovresti rimuovere le chiamate ai costruttori...

Fai un backup eh :razz:

__________________
Computer Science: solving today's problems tomorrow.

05-10-2006 15:26
Click Here to See the Profile for hannibal Click here to Send hannibal a Private Message Visit hannibal's homepage! Find more posts by hannibal Add hannibal to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
luna
.grande:maestro.

User info:
Registered: Apr 2003
Posts: 4565 (0.55 al dì)
Location: Rozzano
Corso:
Anno: Ormai finito!
Time Online: 102 Days, 14:49:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

piu' che altro nella versione 1.4 dichiaravo il Vector con ad esempio:

Vector vector = flInt.searchFile(nameFile);

e a quanto pare ora dovrei invece utilizzare una cosa del tipo

Vector < > vector = ecc.ecc...

il problema è che non capisco proprio concettualmente cosa dovrei mettere in < >!:look:

__________________
"Solamente il cuore ti permette di vedere chiaramente.L'essenziale e' invisibile agli occhi"
bisogna vivere "alla giornata", senza crearsi troppe aspettative. quello che viene sarà un "di più" ed è da mettere nel salvadanaio.
Sono troppo una grilla petulante :D by Nous

05-10-2006 15:31
Click Here to See the Profile for luna Click Here to See the Blog of luna Click here to Send luna a Private Message Find more posts by luna Add luna to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
hannibal
.illuminato.

User info:
Registered: Sep 2004
Posts: 198 (0.03 al dì)
Location:
Corso: Informatica Magistrale
Anno:
Time Online: 6 Days, 1:14:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ahhhhh capito.
Devi mettere fra < e > il tipo di oggetto che inserirai nel vettore. Ad esempio se riempirai il vettore di stringhe dovrai scrivere

code:
Vector<String> vettore = new Vector<String>


chiaramente non puoi inserire un tipo primitivo, ma solo oggetti.

__________________
Computer Science: solving today's problems tomorrow.

05-10-2006 15:43
Click Here to See the Profile for hannibal Click here to Send hannibal a Private Message Visit hannibal's homepage! Find more posts by hannibal Add hannibal to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
luna
.grande:maestro.

User info:
Registered: Apr 2003
Posts: 4565 (0.55 al dì)
Location: Rozzano
Corso:
Anno: Ormai finito!
Time Online: 102 Days, 14:49:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non riesco proprio a modificarli nel progetto :alsono: e non capisco perche'...quando compilo mi da' sempre errore sulla V di Vector :sbonk:

__________________
"Solamente il cuore ti permette di vedere chiaramente.L'essenziale e' invisibile agli occhi"
bisogna vivere "alla giornata", senza crearsi troppe aspettative. quello che viene sarà un "di più" ed è da mettere nel salvadanaio.
Sono troppo una grilla petulante :D by Nous

05-10-2006 15:55
Click Here to See the Profile for luna Click Here to See the Blog of luna Click here to Send luna a Private Message Find more posts by luna Add luna to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Renaulto
is fan of UTF-8

User info:
Registered: Aug 2002
Posts: 4064 (0.47 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 96 Days, 0:23:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Posta l'errore, altrimenti è impossibile capire qual è il problema.

__________________
Tanenbaum is overrated.

05-10-2006 17:46
Click Here to See the Profile for Renaulto Click Here to See the Blog of Renaulto Click here to Send Renaulto a Private Message Find more posts by Renaulto Add Renaulto to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 16:08.    Post New Thread    Post A Reply
  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.188 seconds (47.03% PHP - 52.97% MySQL) con 25 query.