Code:
import java.util.Scanner;
public class test {
private String char = null;
public test() {
if (char.equals("vowel") {
// do something
} else {
// do something else
}
}
public static void main(String args[]) {
Scanner s = new Scanner(System.in);
System.out.println("Enter character: ");
char = s.nextLine();
new test();
}
} I'm not giving you your homework codes, but this is the conscept. Hopefully it's helpful
