I’ve just started learning Java and Eclipse within the last month and am stuck on a project.
I have to create a random phone number generator in the form xxx-xxx-xxxx, but the first 3 numbers cannot contain an 8 or 9 and the second set of three numbers cannot exceed 742.
The part I am stuck with is how to not include the 8 or the 9. I can create a three digit random number, but I can’t quite figure out how to do this.
Hopefully I’ve posted this in the right place and somone can help me out.
Peace,
Huw