Coala19 de Mayo del 2006
PreguntaHolas, estoy haciendo un programa que me permita contar las vocales dentro de un arreglo y contarlas.Lo estoy haciendo por medio del metodo charAt.Pero no me esta entregando ningun resultado, alguien me puede ayudar pliss.
f (arreglo1[i].charAt(i) == 'a')
{
contv=contv++;
}
else
if (arreglo1[i].charAt(i)=='e')
{
contv=contv++;
}
else
if (arreglo1[i].charAt(i) == 'i')
{
contv=contv++;
}
System.out.print(" Cantidad es : " +contv);
Que es lo que hay mal, y como poder corregirlo
f (arreglo1[i].charAt(i) == 'a')
{
contv=contv++;
}
else
if (arreglo1[i].charAt(i)=='e')
{
contv=contv++;
}
else
if (arreglo1[i].charAt(i) == 'i')
{
contv=contv++;
}
System.out.print(" Cantidad es : " +contv);
Que es lo que hay mal, y como poder corregirlo
