我正在尝试在//************************************************************
// Grade.java Lawrence Maizon-Taylor
// Gives response based on inputed grade
//************************************************************
import javax.swing.JOptionPane;
public class Grade
{
public static void main (String[] args)
{
String name, gradeString;
int grade; //variable
JOptionPane.showMessageDialog (null, "This program asks for your name and number based on a pass or fail grade of a course"); //makes statement
name = JOptionPane.showInputDialog (null, "Enter your first name: "); //asks for name
gradeString = JOptionPane.showInputDialog (null, "Enter a number 1 if you passed the course or a number 2 if you failed the course: ");//asks for number based on grade
if (grade == 1)
JOptionPane.showInputDialog (null, name + " congratulations on passing the course!");
else
JOptionPane.showInputDialog (null, name + " sorry you didn't pass. Next time study!");
grade = Integer.parseInt(gradeString);
System.exit (0);
}
}
中制作购物猫应用程序。它位于SAPUI5
的演示工具包中。
我希望通过单击list1的Item来从一个List1移动到另一个List1。我的代码如下 -
SAPUI5.hanaondemand.com
请告诉我此代码中的错误...