answersLogoWhite

0


Best Answer

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

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you replace a vowel into asterisk using java program loops?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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.


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


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.


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


What is asterisk using math?

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


How to remove duplicate letters using for loops in java?

ill help you


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.


How do you do a nested loop using Qbasic?

There several methods: For/Next loop Do/While/Until loops You can have Do Loops within Do Loops.