0

if anyone got java output

25th Sep 2016, 2:49 PM
Jamuna.D
6 Réponses
+ 1
can you explain a little more please...
25th Sep 2016, 2:52 PM
Aquarius
Aquarius - avatar
+ 1
in this app you can get output
25th Sep 2016, 4:13 PM
Jamuna.D
+ 1
yes you can
25th Sep 2016, 4:40 PM
Aquarius
Aquarius - avatar
+ 1
thanks for your answer.
26th Sep 2016, 7:24 PM
Jamuna.D
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); } }
12th Oct 2016, 5:49 PM
Jamuna.D
0
compilation error anyone find out the error please
12th Oct 2016, 5:51 PM
Jamuna.D