Java Scanner radix() MethodThe radix() method of Java Scanner class is used to get the default radix of the Scanner using. SyntaxFollowing is the declaration of radix() method: ParameterThis method does not accept any parameter. ReturnsThe radix() method reurns the default radix of this Scanner. ExceptionsNA Compatibility VersionJava 1.5 and above Example 1Output: Given String: Hi All! This is JavaTpoint. Default Radix: 10 Example 2Output: Enter Your Name: SSSIT.com Found Default Radix: 10 Example 3Output: String: 22 String: 45 String: 200 String: 150 Found Default Radix: 10
Next TopicJava Scanner Class
|