/**
* This method will ask the user for some information, create a blank picture to use as a palette and create and display the palette.
*/
186 public static void main(String[] args) {
187 int redValue;
188 Scanner sc = new Scanner(System.in);
189 System.out.print("Enter a Red value: ");
190
191 // Get the value
192 redValue = sc.nextInt();
193 this.createPalette(redValue);
}

i get these errors :
3 errors found:
File: D:\Series\drjava\bookClasses\Picture.java [line: 188]
Error: D:\Series\drjava\bookClasses\Picture.java:188: cannot find symbol
symbol : class Scanner
location: class Picture
File: D:\Series\drjava\bookClasses\Picture.java [line: 188]
Error: D:\Series\drjava\bookClasses\Picture.java:188: cannot find symbol
symbol : class Scanner
location: class Picture
File: D:\Series\drjava\bookClasses\Picture.java [line: 193]
Error: D:\Series\drjava\bookClasses\Picture.java:193: non-static variable this cannot be referenced from a static context

/**
i get these errors :
...
File: D:\Series\drjava\bookClasses\Picture.java [line: 188]
Error: D:\Series\drjava\bookClasses\Picture.java:188: cannot find symbol
symbol : class Scanner
location: class Picture
File: D:\Series\drjava\bookClasses\Picture.java [line: 188]
Error: D:\Series\drjava\bookClasses\Picture.java:188: cannot find symbol
symbol : class Scanner
location: class Picture

In the class Picture do you import the class Scanner using the following code?

import java.util.Scanner;

In the class Picture do you import the class Scanner using the following code?

import java.util.Scanner;

Yes I did and i still dont know why i get the error im consufed

Post your full code, in code tags.

I feel like I say this 100x per day.[CODE=Java]

I feel like I say this 100x per day.

don't worry i already found the problem thank you anyways..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.