لدي برنامج صغير يعني تطبيق لدرس JOptionPane.showInputDialog و JOptionPane.showMessageDialog
لكن المشكلة كالتالي
لا يمكنني عمل :
String G=a*b*c ;
كود التطبيق
import javax.swing.JOptionPane;
public class test {
public static void main(String[] args) {
//String 3achan alkitaba 3arabi + alta3rif mn luser
String aa="الطول";
String bb="العرض";
String cc="الإرتفاع";
String a;
String b;
String c;
String vv = "حجم المتوازي هو:" ;
JOptionPane.showMessageDialog(null , "مرحبا .. لحساب حجم متوازي مستطيلات ضع قيمة كل من الطول و العرض و الإرتفاع على التوالي");
a=JOptionPane.showInputDialog ( aa , "ex:5" ) ;
b=JOptionPane.showInputDialog ( bb , "ex:15" ) ;
c=JOptionPane.showInputDialog ( cc , "ex:7" ) ;
String V =a*b*c ;//هنا الخطأ
JOptionPane.showMessageDialog(null , vv + V );
}تحياتي



