i have written the following code and it is not executing due to the following error
dec.java:7:integer number is too large :10000000000
code
import java.util.*;
class dec{
public static void main(String args[]){
long dig,store,use,temp,temp1,end;
int count=0,count1=0,ch;
use=1000000000;
end=10000000000;
while(use<end){
dig=use;
for(int i=0;i<10;i++){
temp=dig%10;
dig=dig/10;
ch=(10-i)%10;
store=use;
for(int k=0;k<10;k++){
temp1=store%10;
store=store/10;
if(temp1==ch)
count++;
}
if(count!=temp)
break;
else count1++;
}
if(count1==10){
System.out.println("the number is "+use);
break;
}
use++;
}
}
}
i can't understand why long variable is taking integer value.