Results 1 to 2 of 2
Thread: Can someone help me with this?
- 10-24-2009, 02:45 AM #1Member
- Join Date
- Oct 2009
- Rep Power
Can someone help me with this?
This is one of my assignment for my java class:
Write an application that creates and prints a random phone number of the form XXX - XXX - XXXX. Include the dashes in the output. Do not let the first three digits contain an 8 or a 9, and make second ser if three digits is not greater than 742
Im so confused on how to startt.
- 10-24-2009, 03:43 AM #2
Here is a hint:
Random random = new Random(); int r = random.nextInt(10); System.out.println("r: " + r);My Hobby Project: LegacyClone