View Single Post
  #2 (permalink)  
Old 06-16-2007, 11:43 AM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,119
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
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

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!