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 > [Laboratorio] Es x 11-12 SortPolymorphicArray2
Pages (2): [1] 2 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
[D]ani[J]
dsy moderator

User info:
Registered: Aug 2003
Posts: 1380 (0.18 al dì)
Location:
Corso: F47
Anno:
Time Online: 17 Days, 14:25:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[Laboratorio] Es x 11-12 SortPolymorphicArray2

Discussioni sull'esercizio SortPolymorphicArray2 per l' 11 - 12 - 03

__________________
Dani
e-mail: DaniJ@dsy.it
...ahhh ste donne! :D
Buoniiiiiisssimaaaa!

Last edited by [D]ani[J] on 04-12-2003 at 14:01

04-12-2003 13:33
Click Here to See the Profile for [D]ani[J] Click Here to See the Blog of [D]ani[J] Click here to Send [D]ani[J] a Private Message Find more posts by [D]ani[J] Add [D]ani[J] to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lockit
-:| Losef well-wisher |:-

User info:
Registered: May 2003
Posts: 88 (0.01 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: 3
Time Online: 20:32:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non riesco a farmi accettare questo esercizio che sul mio PC funziona.

mi dice che non trova triangle:

/tmp/submissionmZZUjZ/filecQxDdH.java:10: cannot resolve symbol
symbol : class Triangle
location: class SortPolymorphicArray2
a[2] = new Triangle(3, 4);
^
/tmp/submissionmZZUjZ/filecQxDdH.java:14: cannot resolve symbol
symbol : class Triangle
location: class SortPolymorphicArray2
a[6] = new Triangle(3, 8, -100);
^
2 errors

E la cosa strana è che già la prima volta me l'aveva fatto ma poi magicamente mi ha accettato la classe, poi ho rispedito triangle.java perchè l'avevo modificata, me l'ha accettato tranquillo, ma mi ha anche sovrascritto la classe SortPolymorphicArray2.java e adesso non me la accetta più.

Sapete come fare??

06-12-2003 14:45
Click Here to See the Profile for lockit Click here to Send lockit a Private Message Visit lockit's homepage! Find more posts by lockit Add lockit to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
supernova
Mad For It

User info:
Registered: May 2003
Posts: 403 (0.05 al dì)
Location: Milan, London
Corso: Digital Comunication
Anno: I Don't Know, Not Yet.
Time Online: 3 Days, 4:56:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

se all'inizio della classe hai messo public levalo e dovrebbe andare.

__________________
" So I Start The Revolution From My Bed ". Noel Gallagher

06-12-2003 20:09
Click Here to See the Profile for supernova Click here to Send supernova a Private Message Find more posts by supernova Add supernova to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lockit
-:| Losef well-wisher |:-

User info:
Registered: May 2003
Posts: 88 (0.01 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: 3
Time Online: 20:32:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Public non c'è, il problema è che non trova la mia classe Triangle e non sò come mai

:? :? :?

aiutoooooooo

PS Qualcuno è riuscito a spedirlo al prof??

Last edited by lockit on 07-12-2003 at 11:09

06-12-2003 21:50
Click Here to See the Profile for lockit Click here to Send lockit a Private Message Visit lockit's homepage! Find more posts by lockit Add lockit to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
citrus
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 382 (0.05 al dì)
Location: como
Corso: com. digitale
Anno: 2
Time Online: 2 Days, 14:39:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

banane!!!
da' lo stesso errore anche a me, bisognerebbe sapere dove va a finire la classe triangle che sottoponiamo e dargli il giusto percorso....
però secondo me non va a finire nel classpath sul server quindi non la troverà mai!!!!!!!!!

qualcuno c'è riuscito????????

08-12-2003 17:51
Click Here to See the Profile for citrus Click here to Send citrus a Private Message Find more posts by citrus Add citrus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
foolish
bleak

User info:
Registered: Oct 2003
Posts: 3585 (0.47 al dì)
Location:
Corso:
Anno:
Time Online: 36 Days, 7:28:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

secondo me devono ancora inserire la classe Triangle.

è successa la stessa cosa per l'ultima sottoposizione, in settimana mi sa che l'accetterà.

__________________
The only way to discover the limits of the possible is to go beyond them into the impossible.
Arthur C. Clarke.

08-12-2003 18:23
Click Here to See the Profile for foolish Click Here to See the Blog of foolish Click here to Send foolish a Private Message Find more posts by foolish Add foolish to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
EagleSpirit
.consigliere.

User info:
Registered: Oct 2003
Posts: 127 (0.02 al dì)
Location: VA
Corso:
Anno:
Time Online: 8 Days, 6:36:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

il tutor mi ha suggerito di mettere la gerarchia delle classi e il file SortPolymorphicArray2 in uno zip
e infatti me l'ha accettata :-D

09-12-2003 18:03
Click Here to See the Profile for EagleSpirit Click here to Send EagleSpirit a Private Message Find more posts by EagleSpirit Add EagleSpirit to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lockit
-:| Losef well-wisher |:-

User info:
Registered: May 2003
Posts: 88 (0.01 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: 3
Time Online: 20:32:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

il tutor mi ha suggerito di mettere la gerarchia delle classi e il file SortPolymorphicArray2 in uno zip
e infatti me l'ha accettata :-D


Non ci sono riuscito ho provato a spedirlo in tutti i modi col file.jar con i tutti file.class solo con triangle o con triangle rectangle e shape, ecc.ecc.

Il file zip non me lo vuole accettare, però mi hai dato la buona idea di unire i file!

La classe Triangle l'ho spedita dentro a SortPolymorphicArray2.java e me lo ha accettato:D :D

Bella lì !

09-12-2003 19:10
Click Here to See the Profile for lockit Click here to Send lockit a Private Message Visit lockit's homepage! Find more posts by lockit Add lockit to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
foolish
bleak

User info:
Registered: Oct 2003
Posts: 3585 (0.47 al dì)
Location:
Corso:
Anno:
Time Online: 36 Days, 7:28:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

anch'io l'ho inserita in un solo sorgente e cosi l'accetta, e vai
:ola:

__________________
The only way to discover the limits of the possible is to go beyond them into the impossible.
Arthur C. Clarke.

10-12-2003 16:21
Click Here to See the Profile for foolish Click Here to See the Blog of foolish Click here to Send foolish a Private Message Find more posts by foolish Add foolish to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
citrus
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 382 (0.05 al dì)
Location: como
Corso: com. digitale
Anno: 2
Time Online: 2 Days, 14:39:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

buona con lo zip!!!
bella lì!!!!!
:D

10-12-2003 19:22
Click Here to See the Profile for citrus Click here to Send citrus a Private Message Find more posts by citrus Add citrus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.30 al dì)
Location: Cernusco sul Naviglio!
Corso: Digital Communication!
Anno: Secondo+Primo arretrato!
Time Online: 9 Days, 0:40:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ma come bisogna fare sto esercizio???????
Chi è on-line mi aiuti perfavore!!!!!!!!!!
Vi prego!!!!!!!

__________________
"Il semplice colore, non viziato dal significato e non legato ad una forma definita, può parlare all'anima, in un migliaio di modi diversi.....Oscar Wilde " ......GIGI D'AGOSTINO - FORREST GUMP SUITE



11-12-2003 17:21
Click Here to See the Profile for gabry_deejay Click Here to See the Blog of gabry_deejay Click here to Send gabry_deejay a Private Message Find more posts by gabry_deejay Add gabry_deejay to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
EagleSpirit
.consigliere.

User info:
Registered: Oct 2003
Posts: 127 (0.02 al dì)
Location: VA
Corso:
Anno:
Time Online: 8 Days, 6:36:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

prendi SortPolymorphicArray visto a lezione e ci aggiungi dei triangoli
tutto qui

11-12-2003 17:31
Click Here to See the Profile for EagleSpirit Click here to Send EagleSpirit a Private Message Find more posts by EagleSpirit Add EagleSpirit to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
citrus
.arcimaestro.

User info:
Registered: Oct 2003
Posts: 382 (0.05 al dì)
Location: como
Corso: com. digitale
Anno: 2
Time Online: 2 Days, 14:39:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non devi far praticamente nulla....
copi semplicemente quello che c'è sulle slide di malchioldi e poi, nell'array, aggiungi anche un triangolo usando un istanza della classe Triangle che ti sei creato nell'esercizio precedente.
(praticamente serve solo per testare la classe che ti sei creato)
...
fatto questo verifichi (ma ovviamente ai fini della sottoposizione non è necessario, serve solo a te, diciamo per curiosità...) che l'ordinamento dell'array avvenga in ordine contrario perchè nell'altro esercizio hai modificato anche il metodo CompareTo() della classe Shape......

... tutto qua....

11-12-2003 17:35
Click Here to See the Profile for citrus Click here to Send citrus a Private Message Find more posts by citrus Add citrus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.30 al dì)
Location: Cernusco sul Naviglio!
Corso: Digital Communication!
Anno: Secondo+Primo arretrato!
Time Online: 9 Days, 0:40:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by EagleSpirit
prendi SortPolymorphicArray visto a lezione e ci aggiungi dei triangoli
tutto qui

aggiungo dei triangoli...tipo.....



Shape a [] = {new Square(7), new Circle(3.14),

new Rectangle(6,7), new Square(5), new Circle(3.14),
new Rectangle (7,2), new Square(2),new Triangle(4,3,4) };

java.util.Arrays.sort(a);

for (int i=0;i<a.length;i++) {
a[i].draw();
video.println("Il Mio Perimetro e' : "+a[i].calculatePerimeter());
}

}
}
:?

__________________
"Il semplice colore, non viziato dal significato e non legato ad una forma definita, può parlare all'anima, in un migliaio di modi diversi.....Oscar Wilde " ......GIGI D'AGOSTINO - FORREST GUMP SUITE



11-12-2003 17:36
Click Here to See the Profile for gabry_deejay Click Here to See the Blog of gabry_deejay Click here to Send gabry_deejay a Private Message Find more posts by gabry_deejay Add gabry_deejay to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.30 al dì)
Location: Cernusco sul Naviglio!
Corso: Digital Communication!
Anno: Secondo+Primo arretrato!
Time Online: 9 Days, 0:40:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non mi riconosce i triangoli!!!!!!!!!!!!

aiutatemi Zii.........Almeno me ne esco !!!!!!!!

Forse ho saltato qualche passaggio.....:(

__________________
"Il semplice colore, non viziato dal significato e non legato ad una forma definita, può parlare all'anima, in un migliaio di modi diversi.....Oscar Wilde " ......GIGI D'AGOSTINO - FORREST GUMP SUITE



11-12-2003 17:45
Click Here to See the Profile for gabry_deejay Click Here to See the Blog of gabry_deejay Click here to Send gabry_deejay a Private Message Find more posts by gabry_deejay Add gabry_deejay to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 12:06.    Post New Thread    Post A Reply
Pages (2): [1] 2 »   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.050 seconds (77.84% PHP - 22.16% MySQL) con 26 query.