fork(1) download
  1.  
  2. import java.util.Scanner.*;
  3.  
  4. class cast2 {
  5. public static void main(String[] args) {
  6. // TODO Auto-generated method stub
  7. float m=0.0f;
  8. Scanner sc=new Scanner(System.in);
  9. m=sc.nextInt();
  10. int n=0;
  11. n=(int) m;
  12. System.out.println(n);
  13.  
  14. }
  15.  
  16. }
Compilation error #stdin compilation error #stdout 0.1s 380672KB
stdin
Standard input is empty
compilation info
Main.java:8: error: cannot find symbol
        Scanner sc=new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class cast2
Main.java:8: error: cannot find symbol
        Scanner sc=new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class cast2
2 errors
stdout
Standard output is empty