import java.util.Random;
public class RandomPhoneNumber
{
public static void main (String[]args)
{Random generator = new Random();
/*write down the RandomNumber AreaCode1 AreaCode2 AreaCode3;
*choose the first 3
*choose the second 3
*choose the last four
*combine them
*/
int RandomNumber =0;
int Areacode;
int exchange;
int LastFour =0;
int thenumber = 1212;
System.out.println(" Enter the amount of numbers you want to receive: ");
RandomNumber = generator.nextInt();
Areacode = generator.nextInt();
if ( Areacode = 281 || int Areacode = 713 || int Areacode =832)
{ }
exchange =( int )(237 + Math.random() * 517);
while (LastFour != 1212)
LastFour = (int) (0 + Math.random() *9999);
String string1 = Integer.toString(thenumber);
System.out.println( "Phone numbers that resulted" + Areacode + "-" exchange + "-" LastFour);
System.out.println();
}
}
please help im desperate I need to make it work but don't know how!!!