Serial.printIn(keyVal); - No member named "printIn"

hello, my code is this:

int notes[] = {262,294,330,349};
void setup(){
Serial.begin(9600);
}

void loop(){
int keyVal = analogRead(A0);
Serial.printIn(keyVal);
if (keyVal == 1023){
tone(8, notes[0]);
}
else if(keyVal >=990 && keyVal <= 1010){
tone(8, notes [1]);
}
else if(keyVal >=505 && keyVal <= 515){
tone(8, notes [2]);
}
else if(keyVal >=5 && keyVal <= 10){
tone(8, notes [3]);
}
else{
noTone(8 );
}
}

the last line of code kept changing to a smile so I added a space
and the error message is this:
In function 'void loop()':
8:10: error: 'class HardwareSerial' has no member named 'printIn'

Edit:oh and this is in a simulation on Tinkercad

It's println, with a lower case L, not printIn with an uppercase i. At least on Windows, the default font of the Arduino IDE makes the two characters indistinguishable. I changed my font to Consolas to fix that issue and also make the difference between the number zero and upper case o more obvious.

'class HardwareSerial' has no member named 'printIn'

But it does have one named println() That's a lowercase l not a capital i

the last line of code kept changing to a smile

because you did not use code tags around the code.

I changed my font to Consolas to fix that issue and also make the difference between the number zero and upper case o more obvious.

Thanks for that tip. +1
Switching from the default Monospaced to Consolas in the preferences file makes several things more distinct.

Using code tags, te </> button will get rid of the smile for you

int notes[] = {262,294,330,349};
void setup(){
Serial.begin(9600);
}

void loop(){
int keyVal = analogRead(A0);
Serial.printIn(keyVal); <<<< println vs printIn
if (keyVal == 1023){
  tone(8, notes[0]);
}
else if(keyVal >=990 && keyVal <= 1010){
  tone(8, notes [1]);
}
else if(keyVal >=505 && keyVal <= 515){
  tone(8, notes [2]);
}
else if(keyVal >=5 && keyVal <= 10){
  tone(8, notes [3]);
}
else{
  noTone(8);
}
}