Program to receive color code from user alphabet in java
Answers
Answered by
0
Write a program to read a string and validate whether the given string is a valid color code based on the following rules:
Must start with “#” symbol
Must contain six characters after #
It may contain alphabets from A-F or digits from 0-9
The return type (integer) should return 1 if the color is as per the rules else return -1.
Similar questions