Test Examen
Test Examen
Test Examen
Exercice 1 (5 points) :
package examen.test.caractere;
}
Exercice 2 :(6 points) :
package examen.test.caractere;
for(int i=0;i<str.length();i++)
{
if(Character.isDigit(str.charAt(i)))
{
int fac=1;
for(int j=1; j<=(str.charAt(i));j++)
{
fac = fac*j;
temp.append(fac);
}
String S = temp.toString();
int[] t = new int[S.length()];
for (int i=0; i<t.length ; i++)
{
t[i]=S.charAt(i);
}
return t;
}
}