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 il 28 - 11
Pages (7): « 1 2 [3] 4 5 6 7 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
ellegi
.powerbook.

User info:
Registered: Sep 2003
Posts: 185 (0.02 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: Terzo (1° turno)
Time Online: 1 Day, 21:10:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non sei il solo :(

__________________
"L'ossessione è la fonte perpetua del genio e della follia"

25-11-2003 18:40
Click Here to See the Profile for ellegi Click Here to See the Blog of ellegi Click here to Send ellegi a Private Message Find more posts by ellegi Add ellegi 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

Raga non vi preoccupate, ho risolto il problema dello spazio!!!!

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

26-11-2003 00:00
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
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.28 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

e come?????

__________________
"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



26-11-2003 00:11
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
foolish
bleak

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

Post actions:

Edit | Report | IP: Logged

Originally posted by gabry_deejay
e come?????


hai la tua istanza StringBuffer che è lunga quanto la prima stringa, la seconda ed ha in più uno spazio per lo spazio.

quando hai inserito la prima stringa in StringBuffer
alla posizione seguente (la puoi anche recuperare con l'indice del for) a l'ultima usata per l'inserimento.
Poi continui come prima.

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

26-11-2003 13:59
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
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.28 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

grazie foolish ......

a proposito.....ti mando una birretta

__________________
"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



26-11-2003 14:54
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
foolish
bleak

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

Post actions:

Edit | Report | IP: Logged

Originally posted by gabry_deejay
grazie foolish ......

a proposito.....ti mando una birretta



ci conto!

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

26-11-2003 19:44
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
[D]ani[J]
dsy moderator

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

Post actions:

Edit | Report | IP: Logged

cerchiamo di rimanere on topic ragazzi :)

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

26-11-2003 19:57
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
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.28 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

ahhhhh sti DaniJ con la carica di
dsy newser!!!!!!

__________________
"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



27-11-2003 01:17
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.28 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

ok ragazzi......siamo punto e daccapo...il primo non mi viene nonastante:

import prog.io.*;

class concat {
public static void main (String[] args){
ConsoleInputManager in = new ConsoleInputManager();
ConsoleOutputManager out = new ConsoleOutputManager();

String s1,s2;

int i=0;


s1= in.readLine("Inserisci la prima stringa");
s2= in.readLine("Inserisci la seconda stringa");

StringBuffer s3 = new StringBuffer();
s3.setCharAt(s1.length() + s2.length() +1);

for (i=0;i<s1.length();i++) {
s3.setCharAt(i,(s1.CharAt(i)));
}//Fine primo For

for (i=0;i<s2.length();i++) {
s3.setCharAt(i+s1.length(),s2.CharAt(i));
}//Fine secondo For

out.println("La stringa concatenata e':" + s3);

}//Fine Main
}//Fine Class



Aiutoooooooooooooooooooooooooooooooooooooooooooo!

__________________
"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



27-11-2003 10:08
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
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

Zio ora ti dirò come ho fatto, a me va in pregio.
settaggio della lunghezza dello stringbuffer:
s3.setLength(s1.length() + s2.length()+1);

poi nel secondo for cambia così:
s3.setCharAt(i+s1.length()+1,s2.charAt(i));

Fammi sapere, dovrebbe andare. Ciauz

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

27-11-2003 10:20
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
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

Tu il secondo lo hai fatto???

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

27-11-2003 10:23
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
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.28 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

ancora no....ma per il settaggio dello string buffer io ho fatto:

StringBuffer s3 = new StringBuffer();
s3.setCharAt(s1.length() + s2.length() +1);


è giusto?
Mi da un errore

__________________
"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



27-11-2003 10:25
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.28 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

che pirla che sono....spetta


bella zio.....forse sarai il mio nuovo amicone di vsempre e ti manderò una birrozza!

__________________
"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



27-11-2003 10:26
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.28 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

mi dà un errore nel primo for ancora!!!!!!!!!!!!!!!!!!!!!!!!!

Hel Me ZioooooooOOOOOOOooO

__________________
"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



27-11-2003 10:29
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
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

Definizione dello stringbuffer:
StringBuffer s3 = new StringBuffer ();
s3.setLength(s1.length() + s2.length()+1);

Primo for
for (i=0;i<s1.length();i++)
s3.setCharAt(i,s1.charAt(i));

Secondo for
for (i=0;i<s2.length();i++)
s3.setCharAt(i+s1.length()+1,s2.charAt(i));

E ora Exsurgi Magica Europa!

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

27-11-2003 10:39
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
All times are GMT. The time now is 03:48.    Post New Thread    Post A Reply
Pages (7): « 1 2 [3] 4 5 6 7 »   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.140 seconds (66.51% PHP - 33.49% MySQL) con 23 query.