I have a road bike with a front brake that wears a lot of brake pad when I ride downhill every day. I lose 900ft in elevation on steep grades with lots of stop signs and traffic lights. On top of that, it rains a decent amount and the rim brakes are terrible in that weather. I don't trust them downhill in the rain. Sometimes I just walk.

I feather the brakes going downhill, because otherwise I'm too fast to stop quickly for an errant car.

It'd be nice to not constantly replace pads, and have powerful stopping. How can I make this constant downhill more pleasant?

Thanks. 


Question: All anagrams in a File
Answer: Slightly different approach from the one above. Returning a Hashmap of anagrams instead.

Public static Hashmap&lt;String&gt; anagrams(String [] list){

    Hashmap&lt;String, String&gt; hm = new Hashmap&lt;String, String&gt;();
    Hashmap&lt;String&gt; anagrams = new Hashmap&lt;String&gt;();

    for (int i=0;i&lt;list.length;i++){
        char[] chars = list[i].toCharArray();
        Arrays.sort(chars);
        String k = chars.toString();
        if(hm.containsKey(k)){
            anagrams.put(k);
            anagrams.put(hm.get(k));
        }else{
            hm.put(k, list[i]); 
        }
    }
}