错误:找不到符号int r = in.read();

时间:2018-08-16 11:12:02

标签: java inputstream static-methods

error: cannot find symbol
     int r=in.read();      
           ^
symbol:   variable in
location: class Demo1
1 error
import java.lang.*;  

class Demo1 {  
    public static void main (String arg[]) throws Exception{ 
        int r = in.read();
        char ch = (char)r; 
        float f = (float) ch; 
        System.out.println(f);
    }
}

0 个答案:

没有答案