string.hashCode()

String.hashCode() Returns hash code of the input string.
Syntax
String1.hashCode(string.hashCode()
Returns an integer

Here are some examples with output.
String my_str="plus2net";
System.out.println(my_str.hashCode());// -1850174267
System.out.println("Hi".hashCode());// 2337
System.out.println("H".hashCode());// 72
System.out.println("i".hashCode());// 105
System.out.println("2".hashCode());// 50
System.out.println("welcome".hashCode());// 1233099618
System.out.println("WELCOME".hashCode());// 1951082306


All String functions

Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    Post your comments , suggestion , error , requirements etc here




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer