parsing - Java: parse int value from a char - Stack Overflow

parsing - Java: parse int value from a char - Stack Overflow

瀏覽:1211
日期:2025-06-15
That's probably the best from the performance point of view, but it's rough: String element = "el5"; String s; int x = element.charAt(2)-48;. It works if you ......看更多