1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
SpyIntel [72]
3 years ago
12

Write a program which takes a string input, converts it to lower case, then prints the same string with all vowels (a, e, i, o,

u) removed.
Hint: one good way to do this is to make a new String variable and add all the letters you want to print (i.e. everything except vowels) to it.

Sample Run:

Enter String:
Animation Rerun
nmtn rrn


NOTE: This is in Java :)

if you can do this... It will be helping me a lot for my Java Exam ....
Computers and Technology
2 answers:
kondor19780726 [428]3 years ago
8 0

import java.util.Scanner;

public class JavaApplication66 {

   

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Enter String:");

       String vowels = "aeiou";

       String text = scan.nextLine();

       text = text.toLowerCase();

       String newText = "";

       

       for (int i = 0; i < text.length(); i++){

           char c = text.charAt(i);

           if (vowels.indexOf(c) == -1){

               newText += c;

           }

       }

       System.out.println(newText);

   }

   

}

This works for me. Best of luck.

LenaWriter [7]3 years ago
7 0

Answer:

Scanner scan = new Scanner(System.in);

   System.out.println("Enter String:");

   String v = "aeiou";

   String t = scan.nextLine();

   t =t.toLowerCase();

   String nt ="";

   for(int i = 0; i < t.length(); i++){

   char c = t.charAt(i);

   if (v.indexOf(c) == -1){

   nt += c;

     }

     }

   System.out.println(nt);

   

 }

 

}

Explanation:

Good Luck!

You might be interested in
What is one reason to create a study check list​
grigory [225]
To make sure you studied everything you need to know.
4 0
3 years ago
What is the definition of a digital signal?
pashok25 [27]

Answer:

communication of the binary data via the voltage level for each time interval

Explanation:

5 0
3 years ago
Which of these is a benefit of using the Sort option?​
Reika [66]

There are many benefits of using the shot options in Excel. Some benefits are allowing you to short by number,date,color, letter, columns,or text. This benefits the user because it allows the user to bring data up more easily.

I hope this answers is helpful

3 0
3 years ago
Which of the following is not a reason to choose a community college?
k0ka [10]
They do not make as big of a impression than a famous university when applying for jobs.
8 0
2 years ago
Is my document folder located at taskbar​
KiRa [710]
Nope its located at your my computer
8 0
3 years ago
Other questions:
  • What is the curriculum of digital literacy
    6·1 answer
  • Choosing firm goals for your business
    7·2 answers
  • What is the definition of legal intrusion
    14·1 answer
  • What tones should be used when writing a business document
    13·1 answer
  • A document may wordwrap differently depending on the type of printer being used.
    8·1 answer
  • You are a high school counselor with 9 students who applied for 3 different summer jobs: Job A, Job B, and Job C. Each of the su
    5·1 answer
  • Which tag will you use if you want your web page to look the same as your source code?
    11·1 answer
  • What is the first thing Kernel does when WinLoad turns over the starttup process to it
    5·1 answer
  • Please answer please
    12·2 answers
  • To generate a series of first ten counting number of algorithm​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!