|
Hi!
I have created new program it looks like this:
import javax.swing.*;
public class Tilldelning4 {
public static void main (String[] arg) {
int e1 = 5;
int e2 = 8;
int t = e1;
e1 = e2;
e2 = t;
JOptionPane.showMessageDialog(null, "e1 =" + t + e2 + " e2=" + e2 + t + e1 );
System.exit(0);
}
}
When I run the program I get e1= 55 and e2= 558
How can I make sure that i have the right result??
Legoland
|