karte.java:1: error: class Main is public, should be declared in a file named Main.java
public class Main
^
karte.java:19: error: cannot find symbol
Scanner ob=new Scanner(System.in);
^
symbol: class Scanner
location: class Main
karte.java:19: error: cannot find symbol
Scanner ob=new Scanner(System.in);
^
symbol: class Scanner
location: class Main
karte.java:22: error: cannot find symbol
for(int i=0;i<n;i+=3){
^
symbol: variable n
location: class Main
karte.java:24: error: non-static method suite(char) cannot be referenced from a static context
int st=suite(ch);
^
karte.java:25: error: non-static method num(String) cannot be referenced from a static context
int m=num(str.substring(i+1,i+3));
^
karte.java:35: error: cannot find symbol
int ans[]=new int[n/3];
^
symbol: variable n
location: class Main
7 errors