Hii there ! Being a long time I am back now .
I have Created a small Java Project in which you have to Enter your Name and after that , all the vowels of your name will remove automatically, and then after see your Interesting Name.😆😇
Try this .......... Here is the Source code
import java.util.Scanner;
public class RemoveVowels {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in); // Scan User Input
String name;
System.out.print("Enter Your Name:");
name = scan.nextLine();
char[] c = name.toCharArray();
char cc[] = new char[80];
int x = 0;
for(int y=0; y<c.length; y++) {
if(c[y]=='a' || c[y]=='e' || c[y]=='i' || c[y]=='o' || c[y]=='u') {
continue;
}
else {
cc[x]=c[y];
x++;
}
}
System.out.print("\nAfter Removing Vowels from your Name: ");
System.out.print(cc);
System.out.print("\nCreated by Harsh");
}
}
Now run it using this Link ..https://code.sololearn.com/cDsrWijGHTNe
Note :
After Clicking this link , Enter your Name and press on Submit.
I have Created a small Java Project in which you have to Enter your Name and after that , all the vowels of your name will remove automatically, and then after see your Interesting Name.😆😇
Try this .......... Here is the Source code
import java.util.Scanner;
public class RemoveVowels {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in); // Scan User Input
String name;
System.out.print("Enter Your Name:");
name = scan.nextLine();
char[] c = name.toCharArray();
char cc[] = new char[80];
int x = 0;
for(int y=0; y<c.length; y++) {
if(c[y]=='a' || c[y]=='e' || c[y]=='i' || c[y]=='o' || c[y]=='u') {
continue;
}
else {
cc[x]=c[y];
x++;
}
}
System.out.print("\nAfter Removing Vowels from your Name: ");
System.out.print(cc);
System.out.print("\nCreated by Harsh");
}
}
Now run it using this Link ..https://code.sololearn.com/cDsrWijGHTNe
Note :
After Clicking this link , Enter your Name and press on Submit.
0 comments:
Post a Comment