I've been trying to convert a character to ASCII. Please help out, here is my code.
import java.util.*;
public class CharToAscii {
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc = new Scanner(System.in);
        System.out.println("ENter the character you want to convert");
        char c = sc.next().charAt(0);
        System.out.println(int(c));
    }
}
 
     
    