Check if number is decimal java