A fully functional calculator in Java language