Created
November 27, 2015 06:15
-
-
Save 6desislava6/ded1cf3974764a2bb5c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UICalculator implements UICalculatorInterface { | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub | |
} | |
@Override | |
public void inputTwoNumbers() { | |
System.out.println("Please enter two numbers and an operation:"); | |
} | |
@Override | |
public void invalidArgument(String number, boolean first) { | |
if(first){ | |
System.out.println("The first argument is invalid:" + number ); | |
}else{ | |
System.out.println("The second argument is invalid:" + number); | |
} | |
} | |
@Override | |
public void invalidArguments(String numberFirst, String numberSecond) { | |
System.out.println("Both arguments are invalid:" + numberFirst + " " + numberSecond); | |
} | |
@Override | |
public void zeroDivision() { | |
System.out.println("You cannot divide by zero"); | |
} | |
@Override | |
public void outOfRange(int number) { | |
System.out.println("The argument is out of range " + number); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment