Where am I going wrong. It's causing an error with my a,e, i, o, u. I have an array of vowels, and I need the user to input a vowel. This should send an error message if the character is not a vowel. Thanks. Here's my code.
Code:package vowelarray;
/**
*
* @author Lekeisha
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class VowelArray {
public VowelArray()
{
}
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
VowelArray vowelarray1 = new VowelArray();
vowelarray1.inputFromConsole();
}
public void inputFromConsole()
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// TODO code application logic here
String[]v = {a, e, i, o, u};
System.out.println("Enter a character.");
for (i=0; i< v.length; i++)
{
System.out.println(v[i] + " ");
}
try
{
v = br.readLine();
}
catch
(IOException e)
{
System.out.println("System found error.");
}
}
}

