lucky numbers

how can i solve this in java: i want my program to detect lucky numbers those are any numbers combined of numbers 7 or 4 or both ... the user is allowed to enter from 1 to 10 digit numbers.
EX: 7,74,474 are lucky however 73,470,754 are not.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.