Ask Experts Questions for FREE Help !
Ask
    saenthan's Avatar
    saenthan Posts: 1, Reputation: 1
    New Member
     
    #1

    Feb 17, 2011, 12:03 AM
    solve the in following java code
    import java.io.*;
    class vowels
    {
    public static void main(String args[])throws IOException
    {
    // this coding is to check the vowel letters
    BufferedReader s= new BufferedReader(new InputStreamreader(System.in));
    String x;
    System.out.println("enter a letter");
    (s.readLine());

    if(x.equals("a"))
    {
    System.out.println(x+"It is vowel");
    }
    else
    if(x.equals("e"))
    {
    System.out.println(x+"It is vowel");
    }
    else
    if(x.equals("i"))
    {
    System.out.println(x+"It is vowel");
    }
    else
    if(x.equals("o"))
    {
    System.out.println(x+"It is vowel");
    }
    else
    if(x.equals("u"))
    {
    System.out.println(x+"It is vowel");
    }
    else
    {
    System.out.println(x+"It is not vowel");
    }

    }
    }

Check out some similar questions!

Calculation in java code [ 4 Answers ]

In my program total of fields is 53.25 but it is giving 53.24999 Why it is happening like that

Java code [ 2 Answers ]

Please give me a simple java code for addition of two numbers here two numbers are accepted From users please give me explanation about each code

Java code [ 2 Answers ]

Please give me a java program for additon of two numbers here nos are accepted from users here I am not confident about java program so please gieve me java code I only understand a hello program so please help me

Java code [ 1 Answers ]

What is difference between argument and parameter element as use in calling routines/coding a method? Can one use them interchangeably for talking/writing purposes?


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.