oh ok thank you
can anyone help out with this one pls?!
is it a hard program to write or an easy one?!
Write a Complete program for the following specification:
The SerialNumber class takes a serial number in
the form of LLLLLLLLLLLL-DDDDDDDDD-LLLLLLLLL where each L is a letter
and each D is a digit. The serial number has three groups
of characters, separated by hyphens.
Note: This time any number of letters followed by - followed by any number of digit followed by – followed by any number of letters.
String serial1= "GHFFFFFTRJ-8978888885-AQTTTTWR"; // Valid
String serial2 = "GHT7J-8975-AQWR"; // Invalid
String serial3 = "GHTRJ-8J75-AQWR"; // Invalid
String serial4 = "GHTRJ-8975-AQ2R"; // Invalid
it seems like to ask for a random serial number, and then wants us to enter a serial number, and then see if that's right or wrong....
anyone could give me a hint to start it out?! I'm not sure how to generate a random serial number...(is it possible to have a random character generator?)...and then how do I use "-" in between the entries?!
would appreciate it so much