JOptionPane help needed

The last part is problem im having, especially the math formula.
when I calculate it on the paper, it does not even match with what’s shown in images’
otherwise the coding itself is incorrect and doesn’t compile

import javax.swing.JOptionPane;

public class MyProg03
public static void main(String args)
double a = Double.parseDouble(JOptionPane.showInputDialog("Enter A: "));
double b = Double.parseDouble(JOptionPane.showInputDialog("Enter B: "));
double c = Double.parseDouble(JOptionPane.showInputDialog("Enter C: "));

if (a==0 && b==0)
JOptionPane.showMessageDialog(null, “Value of A and B cannot be zero.”);
int x1 = 1;
int x2 = 2;
double point = ((-a)*x1 - c)/b;
double point2 = ((-a)*x2 - c)/b;

JOptionPane.showMessageDialog(null, "Equation 3x+4y+5=0 includes two points: " + (x1,point) + (x2,point2));

Well, @spiritwaker , :grinning_face_with_smiling_eyes:

The code seem to be just fine, except the output dialog that has to show the result. Try this way,…

JOptionPane.showMessageDialog(null, “Equation “+a+“x+”+b+“y+”+c+”=0”+" includes two points: " + “(”+x1+","+point+") and “+

Thats it for the correct output, [Thumbsup]