Answers for "how to find the tens digit of a number in java"

1

java digit in number

public static void recursion(int number) {
    if(number > 0) {
        recursion(number/10);
        System.out.printf("%d   ", (number%10));
    }
}
Posted by: Guest on August-20-2021
-1

how to check the number of digits in a number in java

int length = (int) (Math.log10(number) + 1);
Posted by: Guest on March-28-2022

Code answers related to "how to find the tens digit of a number in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language