![]() Supplier sup = () -> isOctalBetween(100, 743) Return observations.stream().mapToDouble(function::apply).min().getAsDouble() Return observations.stream().mapToDouble(function::apply).max().getAsDouble() If (observations.isEmpty()) throw new RuntimeException("No data available!!!") Public static int generateOctal(int min, int max) ) thanks.Ī theoretcal problem is that you might produce an awful lot of octals 800, before the first suitable is found. Do you know what I can do to improve my math ability please? I desperately need it. ("Here is a random generated phone number: " strippedNum "-" num2 "-" num3) Īlso, how did you people know about octal base numbers? I would never have known that. Num3 = generator.nextInt(8999) 1000 // make numbers 0 through 9 for each digit.//can't go below 1000. Num2 = generator.nextInt(641) 100 //number has to be less than 742//can't go below 100. Num1 = generator.nextInt(600) 100 //numbers can't include an 8 or 9, can't go below 100. ("The second set of 3 digits can't be greater than 742.") ("The first set of 3 digits can't have 8 or 9 in them.") ("This app prints out a random phone number.") RandomPhoneNum.java:23: cannot find symbol ![]() I posted this on another forum but no answer anymore.Ĭ:\JAVA_PROGRAMMING_CODE\code1\RandomPhoneNum>javac RandomPhoneNum.java ![]() I get the following error though when trying to compile. ![]() I am trying to make a phone number generator. I have had help with my code from another forum, the app is almost done, but no one is answering there now. ![]()
0 Comments
Leave a Reply. |