Converting a char to an int for int arithmetic in java - Stack Overflow

Converting a char to an int for int arithmetic in java - Stack Overflow

瀏覽:642
日期:2025-06-16
chars are actually numbers that represent chars. if you want to convert it into an int, subtract the 0 char int x = (int) (cardArray[i] - '0'); ......看更多