I'm in computer programming class, and I need someone with knowledge of JAVA to help me out to see if my code is correct. This is what I have so far.

// Tyrus Smith

// 2991

// cmps120-6m, Assignment1

// Problem:

// Write a Java program to do the following computation:

// Given the coeffients for two linear equations, find the

// coordinates of the point of the plane that satifies both

// equations.

//

import javax.swing.JOptionPane;

public class Assignment 1

{

public static void main(String args[])

{

// Declaration of variables.

int a1, a2, b1, b2, c1, c2, x, y;

String a3, a4, b3, b4, c3, c4;

// Ask for variables, Echo variables.

a3=JOptionPane.showInputDialog("Enter A Number for a1");

a1=Interger.parse.Int(a3);

System.out.println(" a1 is:"+a1);

a4=JOptionPane.showInputDialog("Enter A Number for a2");

a2=Interger.parse.Int(a4);

System.out.println("a2 is:"+a2);

b3=JOptionPane.showInputDialog("Enter A Number for b1");

b1=Interger.parse.Int(b3);

System.out.println("b1 is:"+b1);

b4=JOptionPane.showInputDialog("Enter A Number for b2");

b2=Interger.parse.Int(b4);

System.out.println("b2 is:"+b2);

c3=JOptionPane.showInputDialog("Enter A Number for c1");

c1=Interger.parse.Int(c1);

System.out.println("c1 is:"+c1);

c4=JOptionPane.showInputDialog("Enter A Number for c2");

c2=Interger.parse.Int(c2);

System.out.println("c2 is:"+c2);

//formula

x=((c1*b2)-(c2*b1))/((a1*b2)-(b1*a2));

y=(c2-a2*x)/b2;

System.out.println("X is:"+x);

System.out.println("Y is:"+y);

System.exit(0);

}

}

// Tyrus Smith

// 2991

// cmps120-6m, Assignment1

// Problem:

// Write a Java program to do the following computation:

// Given the coeffients for two linear equations, find the

// coordinates of the point of the plane that satifies both

// equations.

//

import javax.swing.JOptionPane;

public class Assignment 1

{

public static void main(String args[])

{

// Declaration of variables.

int a1, a2, b1, b2, c1, c2, x, y;

String a3, a4, b3, b4, c3, c4;

// Ask for variables, Echo variables.

a3=JOptionPane.showInputDialog("Enter A Number for a1");

a1=Interger.parse.Int(a3);

System.out.println(" a1 is:"+a1);

a4=JOptionPane.showInputDialog("Enter A Number for a2");

a2=Interger.parse.Int(a4);

System.out.println("a2 is:"+a2);

b3=JOptionPane.showInputDialog("Enter A Number for b1");

b1=Interger.parse.Int(b3);

System.out.println("b1 is:"+b1);

b4=JOptionPane.showInputDialog("Enter A Number for b2");

b2=Interger.parse.Int(b4);

System.out.println("b2 is:"+b2);

c3=JOptionPane.showInputDialog("Enter A Number for c1");

c1=Interger.parse.Int(c1);

System.out.println("c1 is:"+c1);

c4=JOptionPane.showInputDialog("Enter A Number for c2");

c2=Interger.parse.Int(c2);

System.out.println("c2 is:"+c2);

//formula

x=((c1*b2)-(c2*b1))/((a1*b2)-(b1*a2));

y=(c2-a2*x)/b2;

System.out.println("X is:"+x);

System.out.println("Y is:"+y);

System.exit(0);

}

}

## Comment