import javax.swing.JOptionPane;
public class j {
public static void main(String[] args) {
String i=JOptionPane.showInputDialog(null,"输入第一个整数");
int a = Integer.parseInt(i);
String n=JOptionPane.showInputDialog(null,"输入第二个整数");
int p = Integer.parseInt(n);
String l=JOptionPane.showInputDialog(null,"输入第三个整数");
int y = Integer.parseInt(l);
JOptionPane.showMessageDialog(null,(a+p)>y);
}}
public class j {
public static void main(String[] args) {
String i=JOptionPane.showInputDialog(null,"输入第一个整数");
int a = Integer.parseInt(i);
String n=JOptionPane.showInputDialog(null,"输入第二个整数");
int p = Integer.parseInt(n);
String l=JOptionPane.showInputDialog(null,"输入第三个整数");
int y = Integer.parseInt(l);
JOptionPane.showMessageDialog(null,(a+p)>y);
}}
第二个参数要为显示的对象 ,(a+p)>y不是对象。请参考api