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 > [Cazzola] Esercitazione 30 Nov
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
dria81
.illuminato.

User info:
Registered: Mar 2005
Posts: 238 (0.03 al dì)
Location:
Corso: Comunicazione Digitale
Anno:
Time Online: 2 Days, 10:39:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[Cazzola] Esercitazione 30 Nov

Qualcuno sa come si svolge il primo esercizio dell'esercitazione di oggi... ci stò impazzendo da quasi due oreeee!!

Grazie!!:wall:

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

User info:
Registered: Mar 2005
Posts: 238 (0.03 al dì)
Location:
Corso: Comunicazione Digitale
Anno:
Time Online: 2 Days, 10:39:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Gia che ci sono chiedo aiuto anche per il terzo esercizio...
che mi da errore nella seconda istruzione del ciclo for dicendomi:

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0

*******************

int l, l1, l2, i, j;
char aux1, aux2;

StringBuffer s1 = new StringBuffer(in.readLine("Stringa1: "));
StringBuffer s2 = new StringBuffer(in.readLine("Stringa2: "));

l1 = s1.length();
l2 = s2.length();
l = l1+l2;

StringBuffer s = new StringBuffer(l);

for (i=0;i<l1;i++) {
aux1=s1.charAt(i);
s.setCharAt(i,aux1);
}


for (j=0;j<l2;i++) {
aux2=s2.charAt(j);
s.setCharAt((j+l1),aux2);
}


out.println("Stringa concatenata: " + s);

*****************************

:wall::wall::wall::wall::wall::wall::wall::wall::w
all:

30-11-2006 17:06
Click Here to See the Profile for dria81 Click here to Send dria81 a Private Message Find more posts by dria81 Add dria81 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 13:21.    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.046 seconds (78.66% PHP - 21.34% MySQL) con 29 query.