Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int firstThree=(int)inSno;
- double secondThree=(inSno-firstThree)*1000;
- boolean same=false;
- double checkDigit=inSno*1000-(int)inSno;
- if(checkDigit>0.0)
- {
- same=false;
- }
- else
- {
- if(firstThree>=100&&firstThree<=300)
- {
- if(secondThree>=001&&secondThree<=999)
- {
- same=true;
- }
- }
- }
- return same;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement