Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. int firstThree=(int)inSno;
  2. double secondThree=(inSno-firstThree)*1000;
  3. boolean same=false;
  4. double checkDigit=inSno*1000-(int)inSno;
  5.  
  6. if(checkDigit>0.0)
  7. {
  8. same=false;
  9. }
  10. else
  11. {
  12. if(firstThree>=100&&firstThree<=300)
  13. {
  14. if(secondThree>=001&&secondThree<=999)
  15. {
  16. same=true;
  17. }
  18.  
  19. }
  20. }
  21. return same;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement