Try this:
public boolean HasThree(Integer n) {
int a = n / 100;
int b = a % 10;
return (b == 3);
}
solved Java- Input integer number n and print out whether it has 3 at hundred column or not
Try this:
public boolean HasThree(Integer n) {
int a = n / 100;
int b = a % 10;
return (b == 3);
}
solved Java- Input integer number n and print out whether it has 3 at hundred column or not