Bengaluru based Java spring boot, new freelancers (no company please)

Job ID: 34479911

Budget: ₹100 – ₹400 INR

Looking for 2 freelancers who are in Bengaluru, for a project starting immediately. need to be localted in Bengaluru due to our customer's rules.
Should know how to solve simple programs in Java like

Have three integers, say a, b, and c,

write a function and test cases so that :

* true if one of b or c is "close" (differing from a by at most 1), while the other is "far",

differing from both other values by 2 or more.

Hint: Math.abs(num) computes the absolute value of a number.


closeFar(1, 2, 10) --> true
closeFar(1, 2, 3) --> false
closeFar(4, 1, 3) --> true

public boolean nearIsh(int a, int b, int c) {

}


Need to write a function to solve this plus test cases (not junit but simple data diven test cases so you test your code for all use cases ...

public boolean test_nearIsh(int a, int b, int c, boolean expected, int testNumber) {


/**
call function wth a,b,c compare actual output to expected output
example if we pass 6,7,8 should be true,
if we pass 7,7,9 should be ?
write another method called testcases() that calls test_nearIsh with different values for
different scenarios that you can think of, you need to compute and put the correct 'expected' paramater per the problem statement.
you need to write the code for nearIsh and for test_nearIsh, a main method to call the testcases()
partly solved sample : https: github.com/tgkprog/codingbat/blob/master/src/org/moh/academic/IcyHot.java
i have purposely not implemented all the problems in this sample so you can see the output. aim is to get no errors and have a good set of test cases to cover all scenarios and a good implementation per Stackoverflow's, Oracle & Google's Java coding standards



see
https: www.oracle.com/java/technologies/javase/codeconventions-programmingpractices.html

https://google.github.io/styleguide/javaguide.html

https://stackoverflow.com/questions/10365009/what-are-some-universal-clean-coding-conventions

https://stackoverflow.blog/2021/12/23/best-practices-for-writing-code-comments/

https://www.freecodecamp.org/news/lessons-learned-from-the-pragmatic-programmer-and-the-clean-coder/
https://www.bigscal.com/blogs/backend-technology/a-guide-to-achieve-clean-code-and-best-coding-practices/

*/
}