Java throw 2 exceptions
$10-30 USD
Paid on delivery
Hello! I have completed a class for PostFix expression but right now I need to handle 2 type of exceptions. I have 2 methods in that class (toString and Evaluate) and both method are working. However, you will need to write : 1.1) IllegalArgumentsExceptions in the constructor to handle the case of an illegal string examples : " 3 5 +++", "hello", "4 5 6 3 2". A correct input can be "4 9 /", "4 8 3 + /", " a b +". We don't have to handle parenthesis here. 1.2) Another exception in the Evaluate method because for that method we can not evaluate string that contain letters such as " a b +" since we don't know the value of a and b (but it's correct for the constructor). So it's the same logic as the constructor but without letters/variables names. You will probably need to REGEX to read the expression. I think it's about 5 lines of code for the evaluate method and a bit more for the constructor
Project ID: #18781789
About the project
8 freelancers are bidding on average $30 for this job
Hi, Can you ping me to discuss more? I am interested in the project and have an experience in java development. thanks
Greetings! I have experience in Java programing +5 years. I used regex many times in my projects, this job is easy and I can do that quickly may be few hours up to 2 days. I am available +8 hours as a freelancer. I wel More
We can discuss this in more detail and make it as you want. Let me know if you are intrested. Manoj