Java throw 2 exceptions
$10-30 USD
S-au achitat serviciile după ce au fost prestate
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
ID Proiect: #18781789
Detalii despre proiect
Acordat lui:
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 Mai multe
8 freelanceri plasează o ofertă medie de 30$ pentru proiect
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 Mai multe
We can discuss this in more detail and make it as you want. Let me know if you are intrested. Manoj