0
if anyone got java output
6 Réponses
+ 1
can you explain a little more please...
+ 1
in this app you can get output
+ 1
yes you can
+ 1
thanks for your answer.
0
import java.io.*;
import java.lang.String;
class stringmanip
{
public static void main(String args[]) throws IOException
{
String s=new String();
char char s[];
char vowels[]={'a','e','i','o','u','a','e','i','o','u'};
int v=0,n=0,sp=0;
System .out .println("string manipulation");
System.out.println("enter the string");
BufferedReader br=new BufferedReader (new InputStreamReader(System.in));
s=br.readLine();
char s=s.toCharArray();
for(int i=0;i<s.length();i++)
{
if(char s[i]>47&&char s[i]<58)
n++;
else
if((char s[i]>=65&&char s[i]<90)||(char s[i]>85&&char s[i]>=122))
{
for(int k=0;k<=10;k++)
{
if(char s[i]==vowels[k])
v++;
}
}
else
sp++;
}
System.out.println("vowels"+v);
System.out.println("digits"+n);
System.out.println("no of spaces"+sp);
}
}
0
compilation error anyone find out the error please