Computer Science, asked by adipjh06, 1 year ago

please do answer it fast​

Attachments:

Answers

Answered by mn121
0

import java.util.*;

public class convert_word

{

   public static void main(String args[])

   {

       Scanner in = new Scanner(System.in);

       String w,w1="";

       int i,l;

       char ch;

       System.out.println("Enter a word:");

       w=in.next();

       l=w.length();

       w=w.toLowerCase();

       for(i=0;i<l;i++)

       {

           ch=w. charAt(i);

           if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')

           ch=(char)(ch+1);

           w1= w1+ch;

       }

       System.out.println ("New word: "+w1);

   }

}

Hope it helps you...

Please mark it as brainliest...

Similar questions