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 A - F > Fondamenti di architettura e programmazione > [HASHTABLE] Help
Pages (8): « First ... « 4 5 6 7 [8]   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Crashman
.simpatizzante.

User info:
Registered: Jun 2005
Posts: 19 (0.00 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 13:46:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by spenk.85
Hashtable<String,Integer> memoria= new Hashtable<String, Integer>();

questa istruzione, <String,Integer> in particolare, è supportata solo dall'ultima versione di java se non erro!
Basterebbe togliere <String, interger> e fare il cast nelle istruzioni

Mi hai anticipato di pochissimo :P

__________________
"Overcome the devils with a thing called love"
Msn: crashman86@hotmail.com
Futuro programmatore grafico :)

08-02-2006 14:23
Click Here to See the Profile for Crashman Click here to Send Crashman a Private Message Find more posts by Crashman Add Crashman to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
spenk.85
.illuminato.

User info:
Registered: Nov 2005
Posts: 196 (0.03 al dì)
Location: Muggiò
Corso: Comunicazione Digitale
Anno: x
Time Online: 1 Day, 12:55:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

a me cmq resta il problema dell'indentazione....qualcuno ha risolto?

08-02-2006 14:49
Click Here to See the Profile for spenk.85 Click here to Send spenk.85 a Private Message Find more posts by spenk.85 Add spenk.85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nastanada
.arcimaestro.

User info:
Registered: Mar 2004
Posts: 444 (0.06 al dì)
Location: monza
Corso: TICOM
Anno: secondo (quinto?!?!!?)
Time Online: 4 Days, 8:08:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

alla presentazione di Malchiodi non è stato detto cmq.... sono non frequentante e uso java 1.5 perchè mi serve per fare il progetto di sistemi operativi :-D (altra mazzata allegria!)

__________________

MaIL-Me

__________________

08-02-2006 15:06
Click Here to See the Profile for nastanada Click Here to See the Blog of nastanada Click here to Send nastanada a Private Message Find more posts by nastanada Add nastanada to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nastanada
.arcimaestro.

User info:
Registered: Mar 2004
Posts: 444 (0.06 al dì)
Location: monza
Corso: TICOM
Anno: secondo (quinto?!?!!?)
Time Online: 4 Days, 8:08:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

bene viva il sito di sottoposizione, ho dovuto tradurre tutto in java 1.4.........allegria! :-D

__________________

MaIL-Me

__________________

08-02-2006 16:04
Click Here to See the Profile for nastanada Click Here to See the Blog of nastanada Click here to Send nastanada a Private Message Find more posts by nastanada Add nastanada to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
matt23
.consigliere.

User info:
Registered: Jan 2006
Posts: 125 (0.02 al dì)
Location: Peschiera Borromeo
Corso: Comunicazione Digitale
Anno: 1° fuoricorso
Time Online: 1 Day, 6:34:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao a tutti!!

una domanda, anzi facciamo due:
il mio hashtable memoria lo creo come attributo della classe Istruzione giusto? ma poi, successivamente dovrò fare memoria=new hashTable() ??? se sì....dove?!?!?!?!! non me ne capacito :-)

__________________
"You got to lose to know how to win"

09-02-2006 15:53
Click Here to See the Profile for matt23 Click here to Send matt23 a Private Message Find more posts by matt23 Add matt23 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skioda86
.precettore.

User info:
Registered: Jun 2005
Posts: 90 (0.01 al dì)
Location: Borno (BS)
Corso: Comunicazione Digitale
Anno: 1
Time Online: 21:00:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

matt23

Ciao a tutti!!

una domanda, anzi facciamo due:
il mio hashtable memoria lo creo come attributo della classe Istruzione giusto? ma poi, successivamente dovrò fare memoria=new hashTable() ??? se sì....dove?!?!?!?!! non me ne capacito :-)


Lo fai tutto in una istruzione nella classe Istruzione!
Hashtable<String,Integer> memoria = new Hashtable<String,Integer>();

Ma...ci siamo accorti che scritta in linguaggio 1.5 non funziona....quindi bisognerà regredire e scriverla in 1.4!!! KE PALLE...!!!

__________________
- - {[( KEVIN HIGHT FLY)]} - -

Last edited by Skioda86 on 09-02-2006 at 18:36

09-02-2006 18:29
Click Here to See the Profile for Skioda86 Click here to Send Skioda86 a Private Message Visit Skioda86's homepage! Find more posts by Skioda86 Add Skioda86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nastanada
.arcimaestro.

User info:
Registered: Mar 2004
Posts: 444 (0.06 al dì)
Location: monza
Corso: TICOM
Anno: secondo (quinto?!?!!?)
Time Online: 4 Days, 8:08:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Skioda86
Lo fai tutto in una istruzione nella classe Istruzione!
Hashtable<String,Integer> memoria = new Hashtable<String,Integer>();


temo non compili così......

__________________

MaIL-Me

__________________

09-02-2006 18:35
Click Here to See the Profile for nastanada Click Here to See the Blog of nastanada Click here to Send nastanada a Private Message Find more posts by nastanada Add nastanada to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
matt23
.consigliere.

User info:
Registered: Jan 2006
Posts: 125 (0.02 al dì)
Location: Peschiera Borromeo
Corso: Comunicazione Digitale
Anno: 1° fuoricorso
Time Online: 1 Day, 6:34:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ok..grazie ragazzi, il problema del 1.5 l'avevo già risolto, mi mancava solo questa postilla dell'hashTable, che è fastidiosa ^_^

__________________
"You got to lose to know how to win"

09-02-2006 19:06
Click Here to See the Profile for matt23 Click here to Send matt23 a Private Message Find more posts by matt23 Add matt23 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Quentin85
.novellino.

User info:
Registered: Feb 2006
Posts: 4 (0.00 al dì)
Location:
Corso: Comunjicazione Digitale
Anno: Primo
Time Online: 1:14:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao a tutti!
al momento di eseguire il programma, qualsiasi cosa io inserisca in input, mi viene lanciata l'eccezione InvalidVariableException e cioè nella mia Hashtable nn m viene dichiarato un bel niente!! Eppure i vari metodi get e put li ho usati in modo corretto..sono l'unico a cui capita questa cosa??..ditemi di no :-( ..

11-02-2006 15:15
Click Here to See the Profile for Quentin85 Click here to Send Quentin85 a Private Message Find more posts by Quentin85 Add Quentin85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ad676556
.consigliere.

User info:
Registered: Oct 2005
Posts: 135 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 7:25:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao ragazzi..... ho mandato in esecuzione il programma di malchiodi e mi esce:
Exception in thread "main" java.lang.NullPointerException
at Incrementa<int><Incrementa.java:9>
at Programma.main<Programma.java:10>
SAPETE COSA VUOL DIRE........MI STO DANNANDO MA NN RIECO A CAPIRE QUAL'E' L'ERRORE!!!!!!!!.......
:(

11-02-2006 18:11
Click Here to See the Profile for ad676556 Click here to Send ad676556 a Private Message Find more posts by ad676556 Add ad676556 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Joda
.grande:maestro.

User info:
Registered: Mar 2003
Posts: 1126 (0.13 al dì)
Location: Milano
Corso: Dottore in Informatica
Anno: Primo TICOM
Time Online: 9 Days, 23:17:40 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by ad676556
ciao ragazzi..... ho mandato in esecuzione il programma di malchiodi e mi esce:
Exception in thread "main" java.lang.NullPointerException
at Incrementa<int><Incrementa.java:9>
at Programma.main<Programma.java:10>
SAPETE COSA VUOL DIRE........MI STO DANNANDO MA NN RIECO A CAPIRE QUAL'E' L'ERRORE!!!!!!!!.......
:(


molto probabilmente passi un oggetto a qualche metodo della classe Incrementa che ha come valore NULL

__________________
Homepage personale (English version)
c/o segreteria didattica via comelico

11-02-2006 18:43
Click Here to See the Profile for Joda Click Here to See the Blog of Joda Click here to Send Joda a Private Message Visit Joda's homepage! Find more posts by Joda Add Joda to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ad676556
.consigliere.

User info:
Registered: Oct 2005
Posts: 135 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 7:25:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

nn credo .........ma che ne dici se ti passo il codice di incrementa via pm e me lo controlli........

11-02-2006 19:22
Click Here to See the Profile for ad676556 Click here to Send ad676556 a Private Message Find more posts by ad676556 Add ad676556 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
elias86
.precettore.

User info:
Registered: Nov 2005
Posts: 86 (0.01 al dì)
Location: Lissone
Corso: Comunicazione Digitale
Anno: 4
Time Online: 1 Day, 0:08:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Quentin85
ciao a tutti!
al momento di eseguire il programma, qualsiasi cosa io inserisca in input, mi viene lanciata l'eccezione InvalidVariableException e cioè nella mia Hashtable nn m viene dichiarato un bel niente!! Eppure i vari metodi get e put li ho usati in modo corretto..sono l'unico a cui capita questa cosa??..ditemi di no :-( ..


come hai dichiarato l'Hashtable? cosi?: Hashtable memoria = new Hashtable();

Per inserire i valori devi passare un Integer non un int quindi un oggetto.

quando prelevi il valore devi usare ... ... quindi farai Integer v = (Integer)....;
int x = ...;


per l'inserimento fai:
memoria.put....;

__________________
Vendo libri di Matematica discreta (eserciziario) e Informatica applicata al suono
Cerco URGENTEMENTE appunti del corso di "Economia e gestione dell'impresa" della prof.ssa Ripamonti dell'A.A. 2010-2011 chi li avesse mi contatti per favore avrei bisogno di fotocopiarli. Grazie.

Last edited by ciops on 12-02-2006 at 13:40

12-02-2006 13:06
Click Here to See the Profile for elias86 Click here to Send elias86 a Private Message Visit elias86's homepage! Find more posts by elias86 Add elias86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 04:50.    Post New Thread    Post A Reply
Pages (8): « First ... « 4 5 6 7 [8]   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.088 seconds (60.98% PHP - 39.02% MySQL) con 25 query.