Int computerNumber = (int) (Math. generate a random number from 1 to 100 any and all help will be greatly appreciated. i can't make it work any other way though.
the only way i could find to get the program to terminate was to add system.exit but its before my return so i'm assuming that is why i'm getting a build failed. Ive created a relatively simple Blackjack game in java. I will explain, step by step, how I came to. I ask you to check this model for thoroughness and quality. My goal was to find out how to dissect a number guessing game object-oriented. I wrote this little game to practice this. i have it working now and it compiles fine but i get a build failed after running it. I want to write well-thought-out, professional, object-oriented code. i am just trying to add a loop to this that when the correct number is guessed it informs the user that they were right and then have the OK button exit the program. i'm going off a past assignment so the general layout is what the instructor wants. i have tried this program 1000 different ways and it not work right.
i've done well with this class until now.
very good with computers but i know nothing with java and this is a required class. Ok so like everyone usually hears i'm new at this.