convert 4 bytes char to int code example Example: char to int int n = Character.getNumericValue(char);