java – Methods like ord and chr from Python ByMartin March 4, 2022 java – Methods like ord and chr from Python You can cast: c = (char) n; n = (int) c; java – Methods like ord and chr from Python