Simple Java programming exercise to check if a number is binary. A number is said to be binary if it only contains either 0 or 1. If it contains any digit other than these two then its not binary. for example 101 is binary but 123 is not.
Mar 18, 14