001package algs34;
002public class XStringHashcodes {
003        public static void main (String[] args) {
004                // from http://stackoverflow.com/questions/2310498/why-doesnt-strings-hashcode-cache-0
005                String[] strings = new String[] {
006                                "pollinating sandboxes",
007                                "amusement & hemophilias",
008                                "schoolworks = perversive",
009                                "electrolysissweeteners.net",
010                                "constitutionalunstableness.net",
011                                "grinnerslaphappier.org",
012                                "BLEACHINGFEMININELY.NET",
013                                "WWW.BUMRACEGOERS.ORG",
014                                "WWW.RACCOONPRUDENTIALS.NET",
015                                "Microcomputers: the unredeemed lollipop...",
016                                "Incentively, my dear, I don't tessellate a derangement.",
017                                "A person who never yodelled an apology, never preened vocalizing transsexuals.",
018                                "polygenelubricants",
019                                "And so my fellow mismanagements: ask not what your newsdealer can sugarcoat for you -- ask what you can sugarcoat for your newsdealer."
020                };
021                for (String s : strings) {
022                        System.out.format ("%x %s\n", s.hashCode (), s);
023                }
024        }
025}