Package com.knife.Math.exception

Examples of com.knife.Math.exception.InvalidDataException


   * @throws InvalidDataException
   */
  public static long invertNumber(long input) throws InvalidDataException {
    long result = 0;
    if (input == 0) {
      throw new InvalidDataException("A value of 0 cannot be inverted");
    }
    if (input > 0) {
      String temp = "-" + String.valueOf(input);
      result = Long.parseLong(temp);
    } else {
View Full Code Here

TOP

Related Classes of com.knife.Math.exception.InvalidDataException

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.