Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

len of number in java

Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		
		int length = String.valueOf(n).length();
		System.out.print(length);
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #len #number #java
ADD COMMENT
Topic
Name
9+3 =