Package model.entities

Examples of model.entities.ESex


            String[] words = line.split(" ");
            if(words.length == 3) {
                try {
                    if(Integer.parseInt(words[1]) > 0 &&
                            (words[2].toLowerCase().equals("male") || words[2].toLowerCase().equals("female"))) {
                        ESex sex = words[2].toLowerCase().equals("male") ? ESex.Male : ESex.Female;
                        mService.addNewSingle(new CPerson(words[0], Integer.parseInt(words[1]), sex));
                    }
                } catch(NumberFormatException n) {
                    System.out.println(n.toString());
                    continue;
View Full Code Here

TOP

Related Classes of model.entities.ESex

Copyright © 2018 www.massapicom. 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.