Java throw 2 exceptions

Completed Posted 5 years ago Paid on delivery
Completed 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

Java Software Architecture

Project ID: #18781789

About the project

8 proposals Remote project Active 5 years ago

Awarded to:

kpurens

I'm an experienced Java developer. Have had multiple previous cases of exception handling. Can write a clean Regex expression to handle your use case if necessary. I'm new to Freelancer, but can prove myself as an More

$25 USD in 2 days
(2 Reviews)
2.0

8 freelancers are bidding on average $30 for this job

PATechnology

Hi, Can you ping me to discuss more? I am interested in the project and have an experience in java development. thanks

$30 USD in 2 days
(94 Reviews)
5.8
meetravig

Hi there, I read and understood your requirement that you want to do the exception handling in your Java class. I am very good at Java and I can deliver your project to your satisfaction. Let us connect and di More

$35 USD in 1 day
(35 Reviews)
5.2
Baraiya

Hi, Hope you are well. I will give you Best results....! Please send me you all the details before award project. --- Let discus your project. Deadline and budget? --- Services: software, website, Database, We More

$50 USD in 1 day
(24 Reviews)
4.5
eyasanwar91

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

$25 USD in 2 days
(3 Reviews)
1.8
Naseeb656

Hi dear khan is ready for you, i have knowledge about your requirements because me working on java with spring framework, also developed a website with F-End JavaScript with Extjs and B-End java with spring framework More

$25 USD in 2 days
(0 Reviews)
0.0
manojsiiti

We can discuss this in more detail and make it as you want. Let me know if you are intrested. Manoj

$15 USD in 1 day
(0 Reviews)
0.0