+ 2
20th Aug 2017, 5:24 AM
Aagam Shah
9 odpowiedzi
+ 2
change this line: s1=s.replace(ch,"*"); to this: s1+=s.replace(ch,'*'); and remove: else {}} you can also add a space after is System.out.println("Your name is "+s1);
20th Aug 2017, 5:39 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
tnx bro
20th Aug 2017, 5:47 AM
Aagam Shah
0
tnx bro
20th Aug 2017, 5:41 AM
Aagam Shah
0
still not working
20th Aug 2017, 5:44 AM
Aagam Shah
0
'*' so it's a char look a bit closer at my first answer
20th Aug 2017, 5:45 AM
ChaoticDawg
ChaoticDawg - avatar
0
yes
20th Aug 2017, 5:47 AM
Aagam Shah
0
BTW you can change all those ugly OR statements checking if the character is a vowel to something like: "aeiouAEIOU".contains(String.valueOf(ch))
20th Aug 2017, 5:59 AM
ChaoticDawg
ChaoticDawg - avatar
0
yes
20th Aug 2017, 6:01 AM
Aagam Shah
0
tnx bro
20th Aug 2017, 6:01 AM
Aagam Shah