/in/Main.java:4: error: class main is public, should be declared in a file named main.java
public class main{
^
/in/Main.java:8: error: cannot find symbol
String x= sc.nextString();
^
symbol: method nextString()
location: variable sc of type Scanner
/in/Main.java:9: error: cannot find symbol
Char xc = x.charAt(0);
^
symbol: class Char
location: class main
/in/Main.java:11: error: bad operand types for binary operator '<'
if(x<0||x>9){
^
first type: String
second type: int
/in/Main.java:11: error: bad operand types for binary operator '>'
if(x<0||x>9){
^
first type: String
second type: int
5 errors