lundi 30 avril 2018

Java check if first number of int is 0

So the question is very simple. How to check in java if first number of an int is 0;

Say I have: int y = 0123; int n = 123;

Now I need an if statement that would return true for y and false for n.

Aucun commentaire:

Enregistrer un commentaire