Answers

The Brainliest Answer!
2015-07-09T19:53:16+05:30
Import java.util.*;
class Replace
{
void main()
{
Scanner sn = new Scanner(System.in);
S.o.p("Enter a String: ");
String s = sn.nextLine();
s=s.toUpperCase();
int n=s.length();
for(int i=0; i<=n-1; i++)
{
char ch=s.charAt(i);
if(ch=='A' || ch=='E' || ch=='I' || ch=='O' || ch== 'U')
{
String s1 = s.replace(ch,*);
}
}
S.o.p("New String: "+ s1);
}
}
4 3 4
pls mark as the best!!!
but will it print the'*'star sign
yes
as the character has been replaced with '*'