Javatpoint Logo
Javatpoint Logo

Java Scanner radix() Method

The radix() method of Java Scanner class is used to get the default radix of the Scanner using.

Syntax

Following is the declaration of radix() method:

Parameter

This method does not accept any parameter.

Returns

The radix() method reurns the default radix of this Scanner.

Exceptions

NA

Compatibility Version

Java 1.5 and above

Example 1

Output:

Given String: Hi All! This is JavaTpoint.
Default Radix: 10

Example 2

Output:

Enter Your Name: SSSIT.com
Found Default Radix: 10

Example 3

Output:

String: 22
String: 45
String: 200
String: 150
Found Default Radix: 10
Next TopicJava Scanner Class


Help Others, Please Share

facebook twitter pinterest