How to create this Java program?

Can Anyone Show Me How To Create This Java Program?

  • Write a Java program that validates an email address: 1. Using GUI to ask a user to enter a website address in the form of www.xxx.com, etc. 2. Validate that the website has www as the first 3 characters, followed by a dot (.), and then any valid name of the organization (characters/numbers), followed by a dot, and the end should be one of com, net, edu, gov, org, net. Using GUI to print out the valid one and the invalid one, saying why it is not valid. Then ask user to enter an Email address and do the same validation and printout. Please, I need all the help I can get. Thanks, ab28405

  • Answer:

    String ws = getInput(); // use String methods to check the first 3 chars // and then the rest of the string... String ea = getInput(); // use String methods to check the string... http://www.google.co.uk/search?q=java+String&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

Shinigam... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.