Java, cannot find symbol : strange
Beginner
    import java.util.Scanner;
    public class T69{
    
    static String S = new String();
    
    public static int makeInt(){
    int n=0;
    int tein=1;
    int i=S.lenght()-1;
    while(i>0){
    n+=tein*(int)S.charAt(i);
    tein*=10;
    i--;
    }
    return n;
    }
    
    public static void main(String[]args){
    Scanner cin = new Scanner(System.in);
    String S = cin.nextLine();
    int f = S.makeInt();
    
    }
    }

T69.java:12: error: cannot find symbol
int i=S.lenght()-1;
^
symbol: method lenght()
location: variable S of type String
T69.java:24: error: cannot find symbol
int f = S.makeInt();
^
symbol: method makeInt()
location: variable S of type String
2 errors
Java, cannot find symbol : strange
===

Beginner
    import java.util.Scanner;
    public class T69{
    
    static String S = new String();
    
    public static int makeInt(){
    int n=0;
    int tein=1;
    int i=S.lenght()-1;
    while(i>0){
    n+=tein*(int)S.charAt(i);
    tein*=10;
    i--;
    }
    return n;
    }
    
    public static void main(String[]args){
    Scanner cin = new Scanner(System.in);
    String S = cin.nextLine();
    int f = S.makeInt();
    
    }
    }

T69.java:12: error: cannot find symbol
int i=S.lenght()-1;
^
symbol: method lenght()
location: variable S of type String
T69.java:24: error: cannot find symbol
int f = S.makeInt();
^
symbol: method makeInt()
location: variable S of type String
2 errors