Top "Integer" questions

Common datatype in many programming languages for representing a whole number.

Why cannot cast Integer to String in java?

I found some strange exception: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String How it …

java string casting integer
Convert integer into its character equivalent, where 0 => a, 1 => b, etc

I want to convert an integer into its character equivalent based on the alphabet. For example: 0 => a 1 => b 2 =&…

javascript integer alphabet
Java: Integer equals vs. ==

As of Java 1.5, you can pretty much interchange Integer with int in many situations. However, I found a potential defect …

java integer wrapper primitive equals-operator
How does Java handle integer underflows and overflows and how would you check for it?

How does Java handle integer underflows and overflows? Leading on from that, how would you check/test that this is …

java integer integer-overflow
C++ - how to find the length of an integer

I'm trying to find a way to find the length of an integer (number of digits) and then place it …

c++ count numbers integer digits
Add to integers in a list

I have a list of integers and I was wondering if it would be possible to add to individual integers …

python list integer add
Java Convert integer to hex integer

I'm trying to convert a number from an integer into an another integer which, if printed in hex, would look …

java integer hex
Java reverse an int value without using array

Can anyone explain to me how to reverse an integer without using array or String. I got this code from …

java integer reverse
Converting String Array to an Integer Array

so basically user enters a sequence from an scanner input. 12, 3, 4, etc. It can be of any length long and it …

java string integer user-input data-manipulation
Test whether string is a valid integer

I'm trying to do something common enough: Parse user input in a shell script. If the user provided a valid …

string bash if-statement integer