design a program that will check the format for telephone numbers. telephone numbers should be entered as a string w/ the first three character followed by a dash and the last four numbers..

please help i need an answer on this..its a simple string.

You code please.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.