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-useradix-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India