That seemed to work, though the output isn't what I was trying to get.
I entered the numbers:
253462
The random numbers generated were:
336131
The output was:
number guessed is: 3
number guessed is: 3
number guessed is: 3
number guessed is: 6
The results I'd be aiming to get from that would...
Sorry for all the hassle but I'm still coming up with some problems.
I tried compiling again and I got these errors:
----
NumberGuess.java:46: cannot find symbol
symbol : class Vector
location: class NumberGuess
Vector vec = new Vector();
^
NumberGuess.java:46: cannot find symbol
symbol ...
Hi, I'm having some problems with a program I'm working on and was hoping that someone here might be able to help me out.
The purpose of program is to ask the user to enter number guesses into an array and then compare this with an array of random generated numbers to find out how many of the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.