Is integer check in Java?

You need to first check if it’s a number. If so you can use the Math. Round method . If the result and the original value are equal then it’s an integer.

Sizin İçin Seçtik  How do you check if a variable is null or not in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *

Is integer check in Java?

You need to first check if it’s a number. If so you can use the Math. Round method . If the result and the original value are equal then it’s an integer.

Sizin İçin Seçtik  Is 80000 a good salary in Germany?

Leave a Reply

Your email address will not be published. Required fields are marked *