Package org.jboss.example.service

Examples of org.jboss.example.service.Employee


    System.out.println("Please enter the employee's name [firstName lastName]:");
    String name = in.readLine();
    String[] names = name.split("\\s");
    if (names.length != 2) { throw new IllegalArgumentException("Employees must have a first and last name."); }
    return new Employee(names[0], names[1]);
  }
View Full Code Here

TOP

Related Classes of org.jboss.example.service.Employee

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.