Categories
Mastering Development

Cannot find symbol when I’ve defined it already

I’m making a Guess the Number game, and this is my code for the game. import java.util.Random; import java.util.Scanner; public class Guess { public static void main(String[] args) { int guess, diff; Random random = new Random(); Scanner in = new Scanner(System.in); int number = random.nextInt(100) + 1; System.out.println("I’m thinking of a number between 1 […]