Aoa... i m new to java.. please help me to correct this program given blew. it shows error of illegal start of esxpression.. how could b it seems as correct program please help me.. thanks alot
**error: illegal start of expression
JOptionPane.showMeassageDialog(null, "ID: " + ID + "name: " + name + "category:
" + category + "price: " + price + "quantity: " + quantity + "description: " + d
escription+);
**
import javax.swing.*;
class product
{
string ID;
string name;
srting category;
string price;
string quantity;
string description;
// Perameterized constructor
public product(string I, string n, string c, string p, string q, string d){
ID = I;
name = n;
category = c;
price = p;
quantity = q;
description = d;
}
// method for displaying product record on GUI
public void print( )
{
JOptionPane.showMeassageDialog(null, "ID: " + ID + "name: " + name + "category: " + category + "price: " + price + "quantity: " + quantity + "description: " + description+);
}
}