import javax.swing.*;
public class mohamed {
static void tripleValue (int x,int y )
{
int c;
c=x;
x=y;
y=c;
}
public static void main(String[] args) {
String o;
int a;
o=JOptionPane.showInputDialog("insert a");
a=Integer.parseInt(o);
String l;
int b;
l=JOptionPane.showInputDialog("insert b");
b=Integer.parseInt(l);
tripleValue(a,b) ;
System.out.println("x="+a);
System.out.println("y="+b);
i write the program please tell me where is the error
2006-10-23
01:11:16
·
5 answers
·
asked by
Geek
2
in
Computers & Internet
➔ Programming & Design