Java Scanner useLocale() MethodThe useLocale() method of Java Scanner class is used to sets this scanner's locale object to the specified locale. SyntaxFollowing is the declaration of useLocale() method: Parameter
ReturnsThe useLocale() method returns this scanner's locale object. ExceptionsNA Compatibility VersionJava 1.5 and above Example 1Output: Hello JavaTpoint! 12 + 13.0 = 25 New Locale: en Example 2Output: The delimiter used is: / JavaTpoint Abhishek Male 22
Next TopicJava Scanner Class
|