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): « 1 2 3 4 [5] 6 7 8 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
nous
.:Retore Pomposo:.

User info:
Registered: Dec 2001
Posts: 2945 (0.34 al dì)
Location: Fino Mornasco - Como
Corso: Informatica
Anno: Specialista
Time Online: 16 Days, 13:56:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by nous
Se non ho capito male la Hashtable è popolata in ogni costruttore..così facendo non è condivisa ma ne crei una per ogni istanza di classe.


Ok , avevo capito male :)
Mi sono riletto tutto il thread.

__________________
Cristian,il Nous che invoglia ^_^

"La capa è troppo in la,e la sbarba è troppo giovane..mi sa che qua si va in bianco"
Ryo Saeba (City Hunter)

29-01-2006 12:28
Click Here to See the Profile for nous Click Here to See the Blog of nous Click here to Send nous a Private Message Visit nous's homepage! Find more posts by nous Add nous to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
trygun82
.primate.

User info:
Registered: Jun 2002
Posts: 69 (0.01 al dì)
Location: Nova Milanese
Corso: Comunicazione Digitale
Anno:
Time Online: 16:38:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ti sono vicino.....
Anche noi stiamo cercando di capirne qlc!

__________________
"Se qualcuno non ti sorride, sii generoso e offrigli un sorriso.
Nessuno ha più bisogno di un sorriso di chi non può sorridere agli altri"

"Grattatio pallorum non est superstitio, sed remedium bonum contra omnia mala!"

30-01-2006 11:53
Click Here to See the Profile for trygun82 Click here to Send trygun82 a Private Message Visit trygun82's homepage! Find more posts by trygun82 Add trygun82 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nous
.:Retore Pomposo:.

User info:
Registered: Dec 2001
Posts: 2945 (0.34 al dì)
Location: Fino Mornasco - Como
Corso: Informatica
Anno: Specialista
Time Online: 16 Days, 13:56:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Off-Topic:

Si ma io non devo dare l'esame, la mia era pura curiosità accademica :)

__________________
Cristian,il Nous che invoglia ^_^

"La capa è troppo in la,e la sbarba è troppo giovane..mi sa che qua si va in bianco"
Ryo Saeba (City Hunter)

30-01-2006 12:12
Click Here to See the Profile for nous Click Here to See the Blog of nous Click here to Send nous a Private Message Visit nous's homepage! Find more posts by nous Add nous to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma come faccio a condividere la hashtable?

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

31-01-2006 13:39
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 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.14 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 sandrino83
ma come faccio a condividere la hashtable?


con una classe astratta puoi dichiararla protected.

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

31-01-2006 13:59
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
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si ho già letto quello ke dicevi tu ma non funziona lo stesso......crea sempre e comunque una hashtable x ogni classe.....

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

31-01-2006 14:01
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

allora: io scrivo così

abstract class Istruzione

protected Hashtable<String,Integer> memoria = new
Hashtable<String,Integer>();

sbaglio qualcosa?

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

31-01-2006 14:20
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 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.14 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

si, la definizione è giusta.

dunque le interfaccie non possono creare istanze di oggetti, quindi la devi creare in una classe essa sia astratta o statica, fai una cosa oltre a definirla protected, definiscila anche static come disse nous.

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

31-01-2006 14:28
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
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

però devo dichiarare public le classi estese giusto? ame funziona così.........

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

31-01-2006 14:44
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Urborg_team
.primate.

User info:
Registered: Sep 2004
Posts: 74 (0.01 al dì)
Location: Torre de busi
Corso: Comunicazione digitale
Anno: 3
Time Online: 14:15:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by zyx
ma io ho dichiarato "istruzione" come interfaccia.... e funziona


e come l'hai dichiarata interfaccia..mostra il codice please!

__________________
Visit our site! http://www.utsoftware.altervista.org
oppure scrivere a:urborgteam1960@libero.it [valido anche per msn]
http://www.rvinterni.altervista.org

31-01-2006 14:45
Click Here to See the Profile for Urborg_team Click here to Send Urborg_team a Private Message Visit Urborg_team's homepage! Find more posts by Urborg_team Add Urborg_team 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.14 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 sandrino83
però devo dichiarare public le classi estese giusto? ame funziona così.........


ovvio, tutte le classi che devono essere usate in altre parti devono essere public.

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

31-01-2006 14:48
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
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ok.......allora ci siamo.......grazie

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

31-01-2006 14:53
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 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.14 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 sandrino83
ok.......allora ci siamo.......grazie


prego

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

31-01-2006 15:19
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
unid
.consigliere.

User info:
Registered: Nov 2005
Posts: 123 (0.02 al dì)
Location:
Corso: Laureato
Anno: Laureato
Time Online: 22:18:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[hashtable] Ricapitolando

Dunque io l'hashtable lo uso così:

abstract class Istruzione{

Hashtable memoria=new Hashtable();

.......

}

poi nelle varie classi accedo e inserisco elementi con .get e .put.. solo che se in Dichiara uso .put e metto qualcosa nell'hashtable memoria non riesco ad accederci in Assegna... mi dice empty hashtable...

QUINDI... chiedo se qualcuno di voi ha trovato il modo per farlo funzionare....

INOLTRE... siete riusciti a impaginare le stringhe che deve stampare in modo corretto? a me stampa tutto quello che dovrebbe stampare ma lo stampa sfalsato....

31-01-2006 22:43
Click Here to See the Profile for unid Click here to Send unid a Private Message Visit unid's homepage! Find more posts by unid Add unid to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Urborg_team
.primate.

User info:
Registered: Sep 2004
Posts: 74 (0.01 al dì)
Location: Torre de busi
Corso: Comunicazione digitale
Anno: 3
Time Online: 14:15:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io l'ho scritta così

abstract class Istruzione{

public static Hashtable<String,Integer> memoria= new Hashtable<String, Integer>();

abstract public void esegui();

...


ma purtroppo non funziona!

Intervento del moderatore:
troppo codice...limitiamoci nelle pubblicazioni del codice grazie!

__________________
Visit our site! http://www.utsoftware.altervista.org
oppure scrivere a:urborgteam1960@libero.it [valido anche per msn]
http://www.rvinterni.altervista.org

Last edited by ciops on 01-02-2006 at 15:59

01-02-2006 11:51
Click Here to See the Profile for Urborg_team Click here to Send Urborg_team a Private Message Visit Urborg_team's homepage! Find more posts by Urborg_team Add Urborg_team 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:43.    Post New Thread    Post A Reply
Pages (8): « 1 2 3 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.110 seconds (70.00% PHP - 30.00% MySQL) con 24 query.