Convert a char to an integer. You can assume the char is in ASCII code (See Definition, so the value of the char should be in 0~255.
Example
Given a, return 97.
Given %, return 37.
Code
public class Solution { /** * @param character a character * @return an integer */ public int charToInteger(char character) { // Write your code here return (int) character; } }