Hi whenever I try to run Numbers.java I get;
NumberPrinter.java:8: error: cannot find symbol
setPriority(n);
^
why???????????????????????
The textbook I'm studying from uses this exact code as an example but it just doens't seem to be working for me
public class Numbers { public static void main (String args[]) { Thread number1, number2, number3, number4, number5; number1 = new Thread(new NumberPrinter(1)); number1.start(); number2 = new Thread(new NumberPrinter(2)); number2.start(); number3 = new Thread(new NumberPrinter(3)); number3.start(); number4 = new Thread(new NumberPrinter(4)); number4.start(); number5 = new Thread(new NumberPrinter(5)); number5.start(); } }