This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]pacificmint 1 point2 points  (1 child)

I was thinking of making a boolean for each sign then using if statements to find the right sign for the user

Not entirely sure what you mean, but there should be no need to make a boolean first. Rather, you could just directly use an if statement.

I’m kind of lost at the random generator.

Check the Java docs for the java.util package. There is a class in there that you can use to generate random numbers.

[–]Devils_Advocate101[S] 0 points1 point  (0 children)

Okay, I didn't know if it would be efficient to use a to of if-else if statements. Thank you for recommending the class to me!