answersLogoWhite

0

If you want to do it neat and effortless, you may use enums.

public class MyClass {

private enum VOWELS { A,E,I,O,U,a,e,i,o,u; }

public static void main(String []ar) {

String s = "Hello World";

for(VOWELS c : VOWELS.values())

s = s.replace(c.name(), "*");

System.out.println(s);

}

}

.

Ram

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

What is the term for an asterisk being used to replace a letter or group of letters?

The term for using an asterisk to replace a letter or group of letters is "grawlix." This practice is often employed to censor profanity or sensitive information in written text. By substituting letters with asterisks, the intended word is obscured while still being recognizable.


Program codes in turbo c that will display border on the console screen using for loops?

There is not one that I know off but you could write it.


What is a sentence using the word asterisk?

1. Perhaps it means that if an asterisk sticks to one group of champions, it could also apply to all. 2. The sentence marked with an asterisk had been changed. 3. It's not that they have nothing to say, it's that what they say is not accompanied by an asterisk.


How do you make a kiss emoticon?

A kiss emoticon can be made using a colon, hyphen, and asterisk to resemble a kissing face. The asterisk suggests puckered lips.


What kind of music editing program can be used to create original songs using samples and sound loops and is free?

fl studio edison or slice x


A Sentence for asterisk?

All punctuation is before the asterisk.For example:This is a life-time warranty.* *Warranty does not protect against acts of war, internal uprising, domestic unrest, natural disasters, or acts of God.


How does one use Asterisk VoIP?

One can find the information on using Asterisk VoIP by calling the customer service or by reading the tutorials that can be found with purchase or online.


C programs using loops?

Loops are very important part of a C-language. If we have to run our programe multiple time then we use Loops of C.


How do you print square using for loops?

how to print "square" using for loop


How do you write a program on watfor77?

To write a program in Watfor77, you start by using a text editor to create a source code file with a .f extension. The program follows Fortran 77 syntax, which includes defining variables, writing subroutines, and using control structures like loops and conditionals. Once your code is written, you compile it using the Watfor77 compiler, which translates the Fortran code into an executable format. Finally, you run the compiled program to see the output.


What is asterisk using math?

its when u times somthing with anuther thing like 1*1 = 2


How do you configure call routing in MPLS to Asterisk PBX?

I may suggest using a media gateway device for linking an MPLS (Multi Protocol Label Switching) to an Asterisk PBX or any other virtual PBX system.