Package cybop.basic

Examples of cybop.basic.String.lastIndexOf()


        Hashtable hashtable = getPatientHashtable();
        for (Enumeration e = hashtable.keys(); e.hasMoreElements();) {
            HealthRecord patient = (HealthRecord) hashtable.get(e.nextElement());
            String patientName = patient.getName().getValue();
            //deleting possible spaces
            patientName = patient.getName().getValue().substring(patientName.lastIndexOf(" ") + 1, patientName.length());
            if (patientName.toLowerCase().startsWith(stringToMatch.toLowerCase())) {
                returnVector.addElement(patient);
            }
        }
        return returnVector;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.