I'm new to Java. Just trying to run a random number generator. The program is suppose to generate and print out random numbers between 0 and 9. The program is to stop when the number 7 is printed.

I'm getting a bunch of "cannot find symbol" errors.

import java.util.Random;

public class RandomGenerator{  //Begin class block

    public static void main (  String[] args ) {

//Begin method block

        System.out.println("This is a Random Number Generator. It will print out 

random numbers between 0 and 9 and will stop once the number 7 is generated");

        Random randNumber = new Random();

int numSelected = randNumber.nextInt(10);

System.out.printIn("Generated number:");

while (numSelected != 7) {
	if (numSelected < 7)
	 System.out.printIn ("It's less than 7");
	 System.out.printIn ("It's greater than 7");

if (numSelected == 7)
	System.out.printIn("We have 7! We're done here.");