public static double hydratedRadius(String ion){
        ion = ion.trim();

        boolean test0 = true;
        boolean test1 = false;
        int i = 0;
        double radius = 0.0D;

        // check entered ion against ion list
        while(test0){
            if(IonicRadii.compareHydrated(ion, i)){
                test0 = false;
                test1 = true;
                radius = hydratedRadii[i]*1e-12;
            }
            else{
                i++;
                if(i>=nHydratedIons)test0=false;
            }
        }

        // Abort if entered ion was not found in lists
        if(!test1){
            System.out.println("Class: IonicRadii\nMethod: hydratedRadius\n"+ion + " was not found in the lists of hydrated radii");
            System.out.println("0.0D returned");
        }

        return radius;
    }