Problem:
In JAVA language
Write method called linear which finds the solution to a linear equation ax + b = 0. The program takes in two double variables (for a and b) and returns the solution. (Note: a !=0). Please provide the authentic solution of this problem.